mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-19 01:43:25 -05:00
docs: describe detection as the installer does it
This commit is contained in:
1 parent
3e5a9a18c1
commit
bc91790784
2 files changed
+44
-8
No files matched your search
@@ -2362,5 +2362,22 @@ class StandaloneCopiesReachFlatpakInstalls(unittest.TestCase):
|
||||
self.assertNotIn("$HOME/.local/share/azahar/sysdata", linux)
|
||||
|
||||
|
||||
|
||||
class TheInstallerPageNamesEveryEvidence(unittest.TestCase):
|
||||
"""The page said BizHawk, RetroBat, RomM and RetroPie had no detection
|
||||
and fell back to ~/bios, while install.py found each by its directory."""
|
||||
|
||||
def test_every_rule_is_on_the_page(self):
|
||||
page = (REPO_ROOT / "wiki" / "installer.md").read_text(encoding="utf-8")
|
||||
page = page.replace("\\\\", "\\")
|
||||
expected = [path for _p, method, values, _b in install._EMBEDDED_RULES
|
||||
if method == "file_exists" for path in values]
|
||||
expected += [path.replace("$HOME", "~").rstrip("/")
|
||||
for _os, _p, path, _b in install._PATH_RULES]
|
||||
missing = [path for path in expected if path not in page]
|
||||
self.assertEqual(missing, [])
|
||||
self.assertNotIn("have no detection", page)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user