refactor: hoist test imports, rank pairs at module level

This commit is contained in:
Abdessamad Derraz committed 2026-10-06 06:38:35 +02:00
1 parent c4dab556e7
commit 0b7acf1e7f
22 files changed
+85 -110

No files matched your search

+1 -2
View File
@@ -14,12 +14,11 @@ from pathlib import Path
REPO_ROOT = Path(__file__).resolve().parents[1]
sys.path.insert(0, str(REPO_ROOT / "scripts"))
from packextras import platform_region_groups # noqa: E402
class RequiredOnlyBeforeRegion(unittest.TestCase):
def test_optional_files_leave_the_groups(self):
from packextras import platform_region_groups
systems = {"vic20": {"files": [
{"name": "kernel-ntsc.bin", "destination": "Vic20/kernel-ntsc.bin", "required": True},
{"name": "kernel-japanese.bin", "destination": "Vic20/kernel-japanese.bin",