mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-28 04:18:52 -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
@@ -17,6 +17,9 @@ from pathlib import Path
|
||||
from unittest import mock
|
||||
|
||||
import generate_pack as gp
|
||||
from packs import finalize
|
||||
from packs import manifest
|
||||
from packs import platformpack
|
||||
|
||||
REPO_ROOT = Path(__file__).resolve().parents[1]
|
||||
|
||||
@@ -44,8 +47,8 @@ class FailedPlatformFailsTheRun(unittest.TestCase):
|
||||
)
|
||||
|
||||
def test_pack_mode(self):
|
||||
with mock.patch.object(gp, "generate_pack", _boom), \
|
||||
mock.patch.object(gp, "verify_and_finalize_packs", return_value=True), \
|
||||
with mock.patch.object(platformpack, "generate_pack", _boom), \
|
||||
mock.patch.object(finalize, "verify_and_finalize_packs", return_value=True), \
|
||||
self.assertRaises(SystemExit) as ctx:
|
||||
gp._run_platform_packs(
|
||||
self._args(), [(["retropie"], "retropie")], {}, {}, {}, {}, {}, None
|
||||
@@ -53,7 +56,7 @@ class FailedPlatformFailsTheRun(unittest.TestCase):
|
||||
self.assertEqual(ctx.exception.code, 1)
|
||||
|
||||
def test_manifest_mode(self):
|
||||
with mock.patch.object(gp, "generate_manifest", _boom), self.assertRaises(SystemExit) as ctx:
|
||||
with mock.patch.object(manifest, "generate_manifest", _boom), self.assertRaises(SystemExit) as ctx:
|
||||
gp._run_manifest_mode(
|
||||
self._args(), [(["retropie"], "retropie")], {}, {}, {}, {}
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user