test_models: more typing (#29420)

* not type checked, but we set this in test_car_model

* type this
pull/29324/head
Shane Smiskol 2 years ago committed by GitHub
parent 4c1b8b71d0
commit 6ec00f5ee2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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):
route: str
car_model: str
car_model: Optional[str]
segment: Optional[int] = None

@ -66,9 +66,9 @@ SKIP_ENV_VAR = "SKIP_LONG_TESTS"
class TestCarModelBase(unittest.TestCase):
car_model = None
test_route = None
ci = True
car_model: Optional[str] = None
test_route: Optional[CarTestRoute] = None
ci: bool = True
@unittest.skipIf(SKIP_ENV_VAR in os.environ, f"Long running test skipped. Unset {SKIP_ENV_VAR} to run")
@classmethod

Loading…
Cancel
Save