mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-11 14:03:23 -05:00
refactor: hoist test imports, rank pairs at module level
This commit is contained in:
1 parent
c4dab556e7
commit
0b7acf1e7f
22 files changed
+85
-110
No files matched your search
@@ -15,12 +15,11 @@ import yaml
|
||||
|
||||
REPO_ROOT = Path(__file__).resolve().parents[1]
|
||||
sys.path.insert(0, str(REPO_ROOT / "scripts"))
|
||||
from common import load_platform_config # noqa: E402
|
||||
|
||||
|
||||
class CaseInsensitiveWhereTheFilesystemIs(unittest.TestCase):
|
||||
def test_windows_and_macos_platforms_carry_the_flag(self):
|
||||
from common import load_platform_config
|
||||
|
||||
registry = yaml.safe_load((REPO_ROOT / "platforms" / "_registry.yml").read_text())
|
||||
for name, data in registry["platforms"].items():
|
||||
systems = {str(d.get("os")) for d in (data.get("install") or {}).get("detect", [])}
|
||||
|
||||
Reference in new issue
Block a user