test_models: more typing (#29420)

* not type checked, but we set this in test_car_model

* type this
This commit is contained in:
Shane Smiskol
2023-08-15 20:01:33 -07:00
committed by GitHub
parent 4c1b8b71d0
commit 6ec00f5ee2
2 changed files with 4 additions and 4 deletions

View File

@@ -33,7 +33,7 @@ non_tested_cars = [
class CarTestRoute(NamedTuple):
route: str
car_model: str
car_model: Optional[str]
segment: Optional[int] = None

View File

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