fix: one rule for a file every setup installs

This commit is contained in:
Abdessamad Derraz committed 2026-11-22 00:58:05 +01:00
1 parent 501b2a84f3
commit 5dbd2df9ec
6 files changed
+37 -9

No files matched your search

+17
View File
@@ -5570,6 +5570,23 @@ class BundledFilesAreNotToSource(unittest.TestCase):
self.assertFalse(installed_with_emulator(machines, "retroarch"))
self.assertTrue(installed_with_emulator(hcl))
def test_a_view_naming_no_setup_keeps_what_one_package_leaves_out(self):
"""touchHLE panics without its fonts on ROCKNIX: the emulator page,
the global gap report and the wanted list all still ask for them."""
from packs.crossref import cross_reference
from resolve.validation import installed_everywhere
from sitegen.install import comes_with_app
font = {"name": "LiberationMono-Regular.ttf", "bundled": True,
"not_bundled_on": ["rocknix"]}
self.assertFalse(installed_everywhere(font))
self.assertFalse(comes_with_app(font))
self.assertTrue(installed_everywhere({"name": "a.bin", "bundled": True}))
profiles = {"touchhle": {"emulator": "touchHLE", "type": "standalone",
"systems": ["apple-ios"], "files": [font]}}
report = cross_reference(profiles, {}, {"files": {}, "indexes": {}})
self.assertFalse(report["touchhle"]["gap_details"][0]["bundled"])
def test_every_platform_named_is_registered(self):
from model.registry import list_registered_platforms
from model.profiles import load_emulator_profiles
+2 -2
View File
@@ -656,7 +656,7 @@ class ThePublishedList(unittest.TestCase):
"""Each emulator a row names declares that file as firmware it does
not install itself: pak0.pk3, game data for every profile, is gone."""
from model.profiles import load_emulator_profiles
from resolve.validation import installed_with_emulator
from resolve.validation import installed_everywhere
profiles = load_emulator_profiles(str(REPO_ROOT / "emulators"))
self.assertNotIn("pak0.pk3", [e["n"] for e in self.data["entries"]])
@@ -669,7 +669,7 @@ class ThePublishedList(unittest.TestCase):
if isinstance(f, dict) and f.get("name") == entry["n"]]
with self.subTest(entry=entry["n"], emulator=key):
self.assertTrue([f for f in declared if f.get("category") != "game_data"
and not installed_with_emulator(f)])
and not installed_everywhere(f)])
def test_every_link_lands_on_its_details(self):
"""Each name's link is a built page, and a card anchor is on it."""