mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-22 17:47:48 -06:00
chore: type the pack probe test fixtures
This commit is contained in:
1 parent
472b06a3e0
commit
4835c59508
1 file changed
+6
-1
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user