mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-22 11:49:14 -05:00
feat: describe each data directory on its page
This commit is contained in:
1 parent
dfc4d24ae8
commit
2abef61acd
2 files changed
+41
-2
No files matched your search
@@ -584,5 +584,28 @@ class OnlyAPinnedProfileClaimsAPin(unittest.TestCase):
|
||||
self.assertNotIn("source-pinned", loose)
|
||||
|
||||
|
||||
class ADataDirectorySaysWhatItIs(unittest.TestCase):
|
||||
"""The page said `dolphin-sys` > `Sys` and nothing of the tree it packs."""
|
||||
|
||||
def test_description_origin_mode_and_source(self):
|
||||
from generate_site import generate_emulator_page # noqa: PLC0415
|
||||
|
||||
profile = {
|
||||
"emulator": "Cemu", "type": "standalone + libretro", "systems": [],
|
||||
"source": "https://github.com/cemu-project/Cemu", "source_commit": "c" * 40,
|
||||
"files": [{"name": "keys.txt"}],
|
||||
"data_directories": [{"ref": "packs", "destination": "graphicPacks",
|
||||
"mode": "standalone", "source_ref": "src/main.cpp:10"}],
|
||||
}
|
||||
registry = {"packs": {"description": "Community graphic packs",
|
||||
"source_url": "https://example.test/packs.zip"}}
|
||||
page = generate_emulator_page("cemu", profile, {"files": {}, "indexes": {}},
|
||||
None, set(), registry)
|
||||
self.assertIn("`packs` > `graphicPacks`: Community graphic packs", page)
|
||||
self.assertIn("<https://example.test/packs.zip>", page)
|
||||
self.assertIn("standalone build only", page)
|
||||
self.assertIn("src/main.cpp#L10", page)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user