Merge pull request #5341 from blueyed/auto-slow
tests: conftest: auto-add slow marker
This commit is contained in:
commit
737a1bf947
|
@ -30,6 +30,7 @@ def pytest_collection_modifyitems(config, items):
|
||||||
slowest_items.append(item)
|
slowest_items.append(item)
|
||||||
else:
|
else:
|
||||||
slow_items.append(item)
|
slow_items.append(item)
|
||||||
|
item.add_marker(pytest.mark.slow)
|
||||||
else:
|
else:
|
||||||
marker = item.get_closest_marker("slow")
|
marker = item.get_closest_marker("slow")
|
||||||
if marker:
|
if marker:
|
||||||
|
|
Loading…
Reference in New Issue