feat: link each emulator page to its profile

This commit is contained in:
Abdessamad Derraz committed 2026-10-18 17:24:53 +02:00
1 parent 8f128b0b7f
commit d430d361d9
2 files changed
+29

No files matched your search

+15
View File
@@ -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()