forked from TrueCloudLab/frostfs-testlib
[#366] Test order depends on location
Signed-off-by: Dmitry Anurin <danurin@yadro.com>
This commit is contained in:
parent
3966f65c95
commit
676757948f
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ def pytest_add_frostfs_marker(items: list[pytest.Item]):
|
|||
@pytest.hookimpl(trylast=True)
|
||||
def pytest_collection_modifyitems(items: list[pytest.Item]):
|
||||
# The order of running tests corresponded to the suites
|
||||
items.sort(key=lambda item: item.nodeid)
|
||||
items.sort(key=lambda item: item.location[0])
|
||||
|
||||
# Change order of tests based on @pytest.mark.order(<int>) marker
|
||||
def order(item: pytest.Item) -> int:
|
||||
|
|
Loading…
Add table
Reference in a new issue