|
|
@ -50,7 +50,7 @@ def get_test_cases() -> List[Tuple[str, Optional[CarTestRoute]]]: |
|
|
|
|
|
|
|
|
|
|
|
for i, c in enumerate(sorted(all_known_cars())): |
|
|
|
for i, c in enumerate(sorted(all_known_cars())): |
|
|
|
if i % NUM_JOBS == JOB_ID: |
|
|
|
if i % NUM_JOBS == JOB_ID: |
|
|
|
test_cases.extend(sorted((c, r) for r in routes_by_car.get(c, (None,)))) |
|
|
|
test_cases.extend(sorted((c.value, r) for r in routes_by_car.get(c, (None,)))) |
|
|
|
|
|
|
|
|
|
|
|
else: |
|
|
|
else: |
|
|
|
with open(os.path.join(BASEDIR, INTERNAL_SEG_LIST), "r") as f: |
|
|
|
with open(os.path.join(BASEDIR, INTERNAL_SEG_LIST), "r") as f: |
|
|
@ -385,6 +385,7 @@ class TestCarModelBase(unittest.TestCase): |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@parameterized_class(('car_model', 'test_route'), get_test_cases()) |
|
|
|
@parameterized_class(('car_model', 'test_route'), get_test_cases()) |
|
|
|
|
|
|
|
@pytest.mark.xdist_group_class_property('car_model') |
|
|
|
class TestCarModel(TestCarModelBase): |
|
|
|
class TestCarModel(TestCarModelBase): |
|
|
|
pass |
|
|
|
pass |
|
|
|
|
|
|
|
|
|
|
|