mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-24 02:27:52 -06:00
refactor: name generate_pack arguments in tests
This commit is contained in:
1 parent
0890cb3b60
commit
896416b333
3 files changed
+10
-6
No files matched your search
@@ -173,7 +173,7 @@ class AmberelecCarriesTheMachines(unittest.TestCase):
|
||||
(full, src) for src, full in builder._data_directory_members(
|
||||
config.get("systems", {}), registry, "amberelec",
|
||||
config.get("base_destination", ""), False, set(), set(), set(),
|
||||
refs, core_trees=trees,
|
||||
refs_out=refs, core_trees=trees,
|
||||
)
|
||||
)
|
||||
finally:
|
||||
@@ -204,7 +204,7 @@ class TheCountLineKeepsTreesOutOfTheBaseline(unittest.TestCase):
|
||||
"myminui", "platforms", db, "bios", "tmp", offline=True, record=record,
|
||||
data_registry=common.load_data_dir_registry("platforms"),
|
||||
)
|
||||
line = next(l for l in out.getvalue().splitlines() if "files packed" in l)
|
||||
line = next(entry for entry in out.getvalue().splitlines() if "files packed" in entry)
|
||||
self.assertIn("(0 baseline + ", line)
|
||||
if record.trees:
|
||||
self.assertIn(f"+ {len(record.trees)} in core data trees + ", line)
|
||||
|
||||
@@ -68,8 +68,11 @@ class AnEntryWithoutSourceIsAnOmission(unittest.TestCase):
|
||||
with mock.patch.object(gp, "compute_hashes", return_value=hashes):
|
||||
gp._manifest_core_entries(
|
||||
[extra], {}, self.db, str(REPO_ROOT / "bios"), "", str(REPO_ROOT),
|
||||
{}, True, set(), False, set(), set(), set(), files, {},
|
||||
record, pack_only, SelectionIndex.build({}, {}, {}, []),
|
||||
{}, True,
|
||||
region_drops=set(), case_insensitive=False, seen_destinations=set(),
|
||||
seen_lower=set(), seen_parents=set(), manifest_files=files,
|
||||
omitted_by_destination={}, record_omission=record,
|
||||
pack_only_sizes=pack_only, selection=SelectionIndex.build({}, {}, {}, []),
|
||||
)
|
||||
return files, omitted, pack_only
|
||||
|
||||
|
||||
@@ -34,7 +34,8 @@ class SlotPassReadsTheRegionGrouping(unittest.TestCase):
|
||||
config = load_platform_config("retroarch", "platforms")
|
||||
drops, _fallbacks, _undecided = gp._select_variants(
|
||||
config, config["systems"], "emulators", db,
|
||||
config.get("base_destination", ""), profiles, None, "full", None, True,
|
||||
config.get("base_destination", ""), profiles, None, "full",
|
||||
regions=None, one_per_slot=True,
|
||||
)
|
||||
names = {os.path.basename(d) for d in drops}
|
||||
for name in ("jp_mcd1_9111.bin", "eu_mcd1_9210.bin"):
|
||||
@@ -68,7 +69,7 @@ class VariantGroupSpansSystems(unittest.TestCase):
|
||||
drops, _fallbacks, _undecided = gp._select_variants(
|
||||
config, config["systems"], "emulators", db,
|
||||
config.get("base_destination", ""), profiles, None, "full",
|
||||
region_mod.parse_requested("us"), False,
|
||||
regions=region_mod.parse_requested("us"), one_per_slot=False,
|
||||
)
|
||||
names = {os.path.basename(d) for d in drops}
|
||||
for name in ("jp_mcd1_9111.bin", "eu_mcd2_9306.bin"):
|
||||
|
||||
Reference in new issue
Block a user