mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-28 12:28:51 -06:00
refactor: move verify, slots, crossref into packs
The three commands keep their parser, main and printing. Scans, scopes, report text, the JSON forms, the strict gate and the destinations file live in new packs modules, one subject each.
This commit is contained in:
1 parent
1e95a73a4d
commit
6ba52a9682
21 files changed
+897
-774
No files matched your search
+3
-4
@@ -6896,15 +6896,14 @@ class OneOfASearchList(unittest.TestCase):
|
||||
"""second.bin used to read required: false beside a required
|
||||
first.bin: the set is required and held, so nothing is critical
|
||||
for it, and the strict exit names only the set nobody holds."""
|
||||
from verify import _exit_if_strict_emulator
|
||||
from packs.strictgate import emulator_strict_failure
|
||||
|
||||
result = self._verify()
|
||||
critical = [d["name"] for d in result["details"]
|
||||
if d["status"] == "missing" and d["required"]]
|
||||
self.assertEqual(critical, ["none_a.bin"])
|
||||
with self.assertRaises(SystemExit), contextlib.redirect_stderr(io.StringIO()) as err:
|
||||
_exit_if_strict_emulator(True, result)
|
||||
self.assertIn("1 required file(s) missing: none_a.bin", err.getvalue())
|
||||
self.assertIn("1 required file(s) missing: none_a.bin",
|
||||
emulator_strict_failure(result) or "")
|
||||
|
||||
def test_pack_and_verify_agree(self):
|
||||
from packs.emulatorpack import generate_emulator_pack
|
||||
|
||||
Reference in new issue
Block a user