test_models: more typing (#29420)

* not type checked, but we set this in test_car_model

* type this
old-commit-hash: 6ec00f5ee2
beeps
Shane Smiskol 2 years ago committed by GitHub
parent df3502d8c8
commit 6c6fcd8b22
  1. 2
      selfdrive/car/tests/routes.py
  2. 6
      selfdrive/car/tests/test_models.py

@ -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

Loading…
Cancel
Save