mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-14 05:53:47 -06:00
chore: merge origin/main
This commit is contained in:
commit
43088a4e9e
2 files changed
+17
-1
No files matched your search
@@ -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), {})
|
||||
|
||||
Reference in new issue
Block a user