mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-12-03 14:58:51 -06:00
refactor: split crossref into its three subjects
FileConsumers, held_copy and entry_target move to packs/consumers.py, the data/ and bios/ ZIP index to packs/supplemental.py, the launcher-name report to packs/crossreflaunchers.py and the set-aside labels with profile_breakdown to packs/crossreftext.py. The site no longer imports the gap engine to learn who reads a file.
This commit is contained in:
1 parent
cdbde88017
commit
3344cfd2fb
35 files changed
+806
-768
No files matched your search
@@ -304,7 +304,7 @@ class AMemberNameIsNotALooseFile(unittest.TestCase):
|
||||
no archive member names, shipped nothing."""
|
||||
|
||||
def test_verify_reads_undeclared_files_as_the_builder_does(self):
|
||||
from packs import crossref
|
||||
from packs import supplemental
|
||||
|
||||
emulator_profiles_cache.clear()
|
||||
root = Path(tempfile.mkdtemp())
|
||||
@@ -324,7 +324,7 @@ class AMemberNameIsNotALooseFile(unittest.TestCase):
|
||||
db = {"files": {}, "indexes": {"by_md5": {}, "by_name": {}, "by_crc32": {},
|
||||
"by_path_suffix": {}}}
|
||||
config = load_platform_config("fakeplat", str(root / "platforms"))
|
||||
with mock.patch.object(crossref, "build_supplemental_index",
|
||||
with mock.patch.object(supplemental, "build_supplemental_index",
|
||||
lambda *a, **k: {"315-6146.bin"}):
|
||||
result = verify_platform(config, db, str(root / "emulators"))
|
||||
self.assertEqual(
|
||||
|
||||
Reference in new issue
Block a user