chore: drop the shared groups no platform reads

Six of the eight shared groups injected nothing: three were
included by no platform, three repeated System.dat entry for entry,
so a correction made in them reached no pack. They are removed with
their scraper wiring, and a test requires every remaining group to
contribute an entry somewhere.
This commit is contained in:
Abdessamad Derraz committed 2026-10-18 04:03:01 +02:00
1 parent b6f6798c15
commit d5f40a4515
4 files changed
+26 -186

No files matched your search

+22
View File
@@ -457,6 +457,28 @@ class APackIsSwappedInWhole(unittest.TestCase):
self.assertNotIn('ZipFile(zip_path, "w"', source)
class EverySharedGroupServesAPlatform(unittest.TestCase):
"""Six of the eight shared groups injected nothing: fuse, mt32 and
jiffydos were included by no platform, and kronos, keropi and ep128emu
repeated System.dat entry for entry. load_platform_config keeps the
platform's own entry, so a hash corrected there changed no pack, no
verify and no manifest, and nothing said so."""
def test_each_group_contributes_an_entry_somewhere(self):
from common import list_registered_platforms, load_platform_config
platforms_dir = str(ROOT / "platforms")
with (ROOT / "platforms" / "_shared.yml").open(encoding="utf-8") as handle:
groups = set((yaml.safe_load(handle) or {}).get("shared_groups") or {})
served = {
entry.get("shared_group")
for name in list_registered_platforms(platforms_dir, include_archived=True)
for system in load_platform_config(name, platforms_dir).get("systems", {}).values()
for entry in system.get("files", [])
}
self.assertEqual(sorted(groups - served), [])
class FaqRegressions(unittest.TestCase):
"""The FAQ states facts the code owns; these tie it back to the source.