chore: merge origin/main

This commit is contained in:
Abdessamad Derraz committed 2026-11-09 11:45:57 +01:00
commit 43088a4e9e
2 files changed
+17 -1

No files matched your search

+8
View File
@@ -281,6 +281,14 @@ class Redirects(unittest.TestCase):
"/wiki/getting-started/": "/which-pack/",
})
def test_an_alias_profile_leads_to_the_profile_it_names(self):
# Search Console found emulators/vba_m/ gone: vba_m is an alias of vbam.
profiles = {"vba_m": {"type": "alias", "alias_of": "vbam"}, "vbam": {"cores": []},
"orphan": {"type": "alias", "alias_of": "nowhere"}}
present = {"emulators/vbam.md", "which-pack.md", "wiki/getting-started.md"}
self.assertEqual(sitestarlight.redirects(profiles, present),
{"/emulators/vba_m/": "/emulators/vbam/"})
def test_a_moved_page_redirects_only_once_its_source_is_gone(self):
present = {"wiki/getting-started.md", "which-pack.md"}
self.assertEqual(sitestarlight.redirects({}, present), {})