chore: type the pack probe test fixtures

This commit is contained in:
Abdessamad Derraz committed 2026-11-21 19:50:33 +01:00
1 parent 472b06a3e0
commit 4835c59508
1 file changed
+6 -1
+6 -1
View File
@@ -23,6 +23,7 @@ import tempfile
import unittest
import zipfile
from pathlib import Path
from typing import ClassVar
from model import measurements as mr
@@ -82,7 +83,7 @@ class ImportDoesNoIO(unittest.TestCase):
class CoreChoice(unittest.TestCase):
def test_system_ids_compare_normalised(self) -> None:
config = {"systems": {"megacd": {}, "psx": {}}}
config: dict[str, dict[str, dict]] = {"systems": {"megacd": {}, "psx": {}}}
self.assertEqual(packprobe.platform_system(config, "sega-mega-cd"), "megacd")
self.assertIsNone(packprobe.platform_system(config, "sega-saturn"))
@@ -429,6 +430,10 @@ def collection_on_disk() -> bool:
class RealLayouts(unittest.TestCase):
"""Both install paths, from this checkout, narrowed to PlayStation."""
work: ClassVar[Path]
pack: ClassVar[Path]
identity: ClassVar[dict]
@classmethod
def setUpClass(cls) -> None:
cls.work = TMP / "real"