mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-12-02 14:28:54 -06:00
refactor: keep shared test fixtures in helpers
Fifteen modules imported FakeRepository from test_install_selection, and others read fixtures from test_install_app, test_install_offline, test_install_games, test_launchers, test_prose_style, test_site_nav, test_site_pronouns and test_site_copy. Those now live in installsupport, gamessupport, launcherssupport, docpagessupport, sitepages and sitecopy, and test_layers refuses an import of a test module. sitereferencesupport and the DIST each site module defined merge into sitepages, launchersretrobatsupport into launcherssupport, auditsupport into the tests package (REPO_ROOT, HAS_JSONSCHEMA). test_launchers is the Batocera module and becomes test_launchers_batocera. test_port becomes test_handheld_port: its archive checks repeated test_handheld_scripts, whose TheArchives now holds the port.json assertions. The testing guide splits the row that held 113 modules, replaces the e2e number ranges by a module table, gives package imports and scratch_dir in How to add a test, lists every module that reads the working tree and every helper module. Its guard moves to test_doc_pages_tools and checks each module on one row once and each family on one row. The guide and tools.md join the pages whose cited paths and options are looked up.
This commit is contained in:
1 parent
b2d4eee534
commit
74ba20ac10
73 files changed
+1718
-1585
No files matched your search
@@ -208,6 +208,20 @@ class TheArchives(unittest.TestCase):
|
||||
self.assertEqual(top, [])
|
||||
self.assertIn("RetroBIOS/retrobios.gptk", names)
|
||||
|
||||
def test_the_port_describes_itself_to_portmaster(self):
|
||||
"""port.json and the files harbourmaster's captain.check_port and the
|
||||
PortMaster listing read, beside the launch script."""
|
||||
name = port.PORT_ZIP
|
||||
with zipfile.ZipFile(port.build_archive(name, self.out / name)) as zf:
|
||||
names = zf.namelist()
|
||||
described = json.loads(zf.read("retrobios/port.json"))
|
||||
for member in ("retrobios/screens.txt", "retrobios/gameinfo.xml", "retrobios/retrobios.md"):
|
||||
self.assertIn(member, names)
|
||||
self.assertEqual(described["version"], 4)
|
||||
self.assertEqual(described["name"], "retrobios.zip")
|
||||
self.assertEqual(described["items"], ["RetroBIOS.sh", "retrobios"])
|
||||
self.assertEqual(described["attr"]["genres"], ["other"])
|
||||
|
||||
def test_the_muos_icon_is_the_glyph_its_header_names(self):
|
||||
"""muOS reads glyph/<ICON>.png in the application's folder, and the
|
||||
muxapp named an icon it did not carry."""
|
||||
|
||||
Reference in new issue
Block a user