From 00c3e48bcde95e9e07b8cd6575ffdf8369650865 Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Wed, 28 Oct 2026 12:10:59 +0100 Subject: [PATCH] feat: verify the site in Search Console Adds the google-site-verification meta tag for the URL-prefix property https://abdess.github.io/retrobios/, with a test that keeps it in the head. --- tests/test_site_r3_components.py | 16 ++++++++++++++++ website/astro.config.mjs | 3 +++ 2 files changed, 19 insertions(+) diff --git a/tests/test_site_r3_components.py b/tests/test_site_r3_components.py index d2fdc1bc6..d83c3a91a 100644 --- a/tests/test_site_r3_components.py +++ b/tests/test_site_r3_components.py @@ -388,5 +388,21 @@ class LogosAtTheirDisplaySize(unittest.TestCase): self.assertIn('src="/retrobios/assets/logos/emudeck.webp"', html) +class SearchConsoleOwnership(unittest.TestCase): + """Search Console checks the tag on every recrawl: without it the + property goes unverified and the sitemap stops being read.""" + + def test_the_head_carries_the_verification_tag(self): + self.assertIn("{ tag: 'meta', attrs: { name: 'google-site-verification', " + "content: '8SueST3hNHl8_vM-OJJP0rz-ZMlI2DALLpChrwZoGMs' } }", + CONFIG.read_text(encoding="utf-8")) + + @unittest.skipUnless((DIST / "index.html").is_file(), "site not built") + def test_the_home_page_serves_it(self): + self.assertIn('