refactor: read the grouping where it lives

This commit is contained in:
Abdessamad Derraz committed 2026-10-09 22:45:58 +02:00
1 parent 8fb65b8e97
commit 6207e81d9c
2 files changed
+11 -1

No files matched your search

+1 -1
View File
@@ -901,7 +901,7 @@ def verify_platform(
# pass reads. Grouping the platform files here and the core extras # pass reads. Grouping the platform files here and the core extras
# there let the two answer differently on one request: the report kept # there let the two answer differently on one request: the report kept
# every core extra a region run withdraws from the pack. # every core extra a region run withdraws from the pack.
from generate_pack import platform_region_groups from packextras import platform_region_groups
region_groups, region_extra_dests = platform_region_groups( region_groups, region_extra_dests = platform_region_groups(
config, config,
+10
View File
@@ -576,6 +576,16 @@ class TestReportAndBuilderNarrowTogether(unittest.TestCase):
"or emulator_region_drops", "or emulator_region_drops",
) )
def test_the_verifier_reads_the_grouping_where_it_lives(self):
"""Imported through the builder's CLI module, the verdict of a
--region run depended on that module compiling, and seven scripts
entered the site workflow's trigger paths for one function."""
source = (Path(__file__).resolve().parent.parent / "scripts" / "verify.py").read_text(
encoding="utf-8"
)
self.assertNotIn("from generate_pack import platform_region_groups", source)
self.assertIn("from packextras import platform_region_groups", source)
def test_emulator_report_keeps_what_the_emulator_pack_keeps(self): def test_emulator_report_keeps_what_the_emulator_pack_keeps(self):
"""O2EM: --region us left the Videopac BIOSes in the pack, not in the report.""" """O2EM: --region us left the Videopac BIOSes in the pack, not in the report."""
repo = Path(__file__).resolve().parent.parent repo = Path(__file__).resolve().parent.parent