mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-28 12:28:51 -06:00
refactor: move pack library code into packs/
This commit is contained in:
1 parent
4d4052a8ab
commit
0b532366d0
167 files changed
+14476
-13882
No files matched your search
@@ -173,7 +173,7 @@ class FileCardsLinkTheReadingEntry(unittest.TestCase):
|
||||
"""The platform links landed on their section, the emulator links on
|
||||
the top of a page of a hundred entries."""
|
||||
import generate_site
|
||||
from cross_reference import FileConsumers
|
||||
from packs.crossref import FileConsumers
|
||||
|
||||
consumers = FileConsumers({"files": {}})
|
||||
files = [{"name": "scph1001.bin"}, {"name": "scph5501.bin"},
|
||||
@@ -202,7 +202,7 @@ class DirectoryMembersNameTheirEmulator(unittest.TestCase):
|
||||
from core.ziptools import build_zip_contents_index
|
||||
from model.database import load_database
|
||||
from model.profiles import load_emulator_profiles
|
||||
from cross_reference import FileConsumers
|
||||
from packs.crossref import FileConsumers
|
||||
|
||||
cls.db = load_database(str(REPO_ROOT / "database.json"))
|
||||
if cls.SHA1 not in cls.db.get("files", {}):
|
||||
@@ -399,7 +399,7 @@ class TheSearchLandsOnTheCard(unittest.TestCase):
|
||||
|
||||
def test_a_system_card_is_a_heading_with_its_anchor(self):
|
||||
import generate_site
|
||||
from cross_reference import FileConsumers
|
||||
from packs.crossref import FileConsumers
|
||||
|
||||
entry = {"name": "a.bin", "sha1": "a" * 40, "md5": "b" * 32, "size": 3}
|
||||
lines = generate_site._system_file_card(entry, FileConsumers({"files": {}}))
|
||||
@@ -415,7 +415,7 @@ class TheSearchSkipsLinkLists(unittest.TestCase):
|
||||
|
||||
def test_a_system_card_keeps_its_name_and_skips_its_body(self):
|
||||
import generate_site
|
||||
from cross_reference import FileConsumers
|
||||
from packs.crossref import FileConsumers
|
||||
|
||||
consumers = FileConsumers({"files": {}})
|
||||
sha1 = "a" * 40
|
||||
@@ -436,7 +436,7 @@ class TheSearchSkipsLinkLists(unittest.TestCase):
|
||||
|
||||
def test_a_game_data_card_skips_its_name_too(self):
|
||||
import generate_site
|
||||
from cross_reference import FileConsumers
|
||||
from packs.crossref import FileConsumers
|
||||
|
||||
entry = {"name": "0.ogg", "sha1": "a" * 40, "size": 3}
|
||||
lines = generate_site._system_file_card(
|
||||
@@ -509,7 +509,7 @@ class AMemberIsReadInItsArchive(unittest.TestCase):
|
||||
import generate_site as gs
|
||||
from resolve.archives import archive_entry
|
||||
from resolve.localfile import resolve_local_file
|
||||
from cross_reference import FileConsumers
|
||||
from packs.crossref import FileConsumers
|
||||
|
||||
db = json.loads((REPO_ROOT / "database.json").read_text(encoding="utf-8"))
|
||||
profile = yaml.safe_load((REPO_ROOT / "emulators" / "fbneo.yml").read_text(encoding="utf-8"))
|
||||
|
||||
Reference in new issue
Block a user