mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-09-30 19:33:42 +08:00
test_models: more typing (#29420)
* not type checked, but we set this in test_car_model * type this
This commit is contained in:
@@ -33,7 +33,7 @@ non_tested_cars = [
|
|||||||
|
|
||||||
class CarTestRoute(NamedTuple):
|
class CarTestRoute(NamedTuple):
|
||||||
route: str
|
route: str
|
||||||
car_model: str
|
car_model: Optional[str]
|
||||||
segment: Optional[int] = None
|
segment: Optional[int] = None
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -66,9 +66,9 @@ SKIP_ENV_VAR = "SKIP_LONG_TESTS"
|
|||||||
|
|
||||||
|
|
||||||
class TestCarModelBase(unittest.TestCase):
|
class TestCarModelBase(unittest.TestCase):
|
||||||
car_model = None
|
car_model: Optional[str] = None
|
||||||
test_route = None
|
test_route: Optional[CarTestRoute] = None
|
||||||
ci = True
|
ci: bool = True
|
||||||
|
|
||||||
@unittest.skipIf(SKIP_ENV_VAR in os.environ, f"Long running test skipped. Unset {SKIP_ENV_VAR} to run")
|
@unittest.skipIf(SKIP_ENV_VAR in os.environ, f"Long running test skipped. Unset {SKIP_ENV_VAR} to run")
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user