mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-21 06:33:52 +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):
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user