mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-10-01 03:43:46 +08:00
pytest: group test_models by route instead of car name (#30625)
* group by route * dont need those old-commit-hash: f16df8e4b7901f5e38b6f90a8900eef02faab504
This commit is contained in:
+3
-2
@@ -45,8 +45,9 @@ def pytest_collection_modifyitems(config, items):
|
||||
item.add_marker(skipper)
|
||||
|
||||
if "xdist_group_class_property" in item.keywords:
|
||||
class_property = item.get_closest_marker('xdist_group_class_property').args[0]
|
||||
item.add_marker(pytest.mark.xdist_group(getattr(item.cls, class_property)))
|
||||
class_property_name = item.get_closest_marker('xdist_group_class_property').args[0]
|
||||
class_property_value = getattr(item.cls, class_property_name)
|
||||
item.add_marker(pytest.mark.xdist_group(class_property_value))
|
||||
|
||||
|
||||
@pytest.hookimpl(trylast=True)
|
||||
|
||||
Reference in New Issue
Block a user