mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-20 18:59:07 -05:00
feat: link each emulator page to its profile
This commit is contained in:
1 parent
8f128b0b7f
commit
d430d361d9
2 files changed
+29
No files matched your search
@@ -494,5 +494,20 @@ class PlatformPagesCarryTheirDeclarations(unittest.TestCase):
|
||||
self.assertTrue(part["url"].endswith("platforms/batocera/#sony-playstation"))
|
||||
|
||||
|
||||
|
||||
class AnEmulatorPageLinksItsProfile(unittest.TestCase):
|
||||
"""A page rendered a profile without linking it: reusing raze.yml meant
|
||||
guessing its path or filtering the 5.9 MB emulators.json."""
|
||||
|
||||
def test_links(self):
|
||||
import generate_site
|
||||
|
||||
page = generate_site.generate_emulator_page(
|
||||
"raze", {"emulator": "Raze", "type": "standalone", "systems": [], "files": []},
|
||||
{"files": {}, "indexes": {}}, {})
|
||||
self.assertIn("/blob/main/emulators/raze.yml", page)
|
||||
self.assertIn("(../api/v1/emulators/raze.json)", page)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user