fix: keep platform_system out of the site contract

The published platform contract validates against platform.schema.json, which does not carry the resolver's per-entry system key. The two inheritance tests and the alias call check read the new entry shape, and the testing guide lists test_maker_folder_names.
This commit is contained in:
Abdessamad Derraz committed 2026-11-05 23:54:47 +01:00
1 parent d1ebd411ab
commit 20a6266923
4 files changed
+24 -4

No files matched your search

+8 -2
View File
@@ -51,7 +51,10 @@ class AChildLeavesItsParentAlone(unittest.TestCase):
self.load("child")
parent = self.load("parent")
self.assertEqual(list(parent["systems"]), ["sys-a"])
self.assertEqual(parent["systems"]["sys-a"]["files"], [{"name": "a.bin"}])
self.assertEqual(
parent["systems"]["sys-a"]["files"],
[{"name": "a.bin", "platform_system": "sys-a"}],
)
def test_the_child_reads_its_own_registry_entry_first(self):
self.load("parent")
@@ -59,7 +62,10 @@ class AChildLeavesItsParentAlone(unittest.TestCase):
self.assertEqual((child["status"], child["scraper"]), ("archived", "child"))
# What it does not say comes from its parent's entry.
self.assertEqual((child["hash_type"], child["cores"]), ("md5", "all_libretro"))
self.assertEqual(child["systems"]["sys-a"]["files"], [{"name": "child.bin"}])
self.assertEqual(
child["systems"]["sys-a"]["files"],
[{"name": "child.bin", "platform_system": "sys-a"}],
)