mirror of
https://github.com/soxoj/maigret.git
synced 2026-05-06 14:08:59 +00:00
Self-checking mode fixed, tags/names site filtering & ranking
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
from _pytest.mark import Mark
|
||||
|
||||
|
||||
empty_mark = Mark('', [], {})
|
||||
|
||||
|
||||
def by_slow_marker(item):
|
||||
return item.get_closest_marker('slow', default=empty_mark)
|
||||
|
||||
|
||||
def pytest_collection_modifyitems(items):
|
||||
items.sort(key=by_slow_marker, reverse=False)
|
||||
Reference in New Issue
Block a user