mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-25 10:58:52 -06:00
refactor: commands read the repository root
This commit is contained in:
1 parent
39e10db75c
commit
9ac3145c5e
13 files changed
+102
-103
No files matched your search
@@ -45,7 +45,7 @@ class EachSourceIsParsedOnce(unittest.TestCase):
|
||||
"emulator: Core\nfiles:\n- name: a.bin\n path: .variants/a.bin\n")
|
||||
loaded = []
|
||||
real = validate_schemas.yaml_load
|
||||
with mock.patch.object(validate_schemas, "ROOT", root), \
|
||||
with mock.patch.object(validate_schemas, "REPO_ROOT", root), \
|
||||
mock.patch.object(validate_schemas, "yaml_load",
|
||||
side_effect=lambda h: loaded.append(h.name) or real(h)):
|
||||
validate_schemas._validate_yaml_directory(root / "emulators", "emulator.schema.json")
|
||||
|
||||
Reference in new issue
Block a user