Merge pull request #5341 from blueyed/auto-slow

tests: conftest: auto-add slow marker
This commit is contained in:
Daniel Hahler 2019-05-30 17:01:43 +02:00 committed by GitHub
commit 737a1bf947
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@ def pytest_collection_modifyitems(config, items):
slowest_items.append(item)
else:
slow_items.append(item)
item.add_marker(pytest.mark.slow)
else:
marker = item.get_closest_marker("slow")
if marker: