Skip to content

Commit d5abea3

Browse files
authored
Remove items' sorting
Remove items' sorting
2 parents e9518ce + 7366bea commit d5abea3

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

pytest_reportportal/plugin.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -71,24 +71,6 @@ def pytest_sessionstart(session):
7171
wait_launch(session.config.py_test_service.rp)
7272

7373

74-
@pytest.hookimpl(trylast=True)
75-
def pytest_collection_modifyitems(session, config, items):
76-
if session.config._reportportal_configured is False:
77-
# Stop now if the plugin is not properly configured
78-
return
79-
80-
# Items need to be sorted so that we can hierarchically report
81-
# * test-filename:
82-
# * Test Suite:
83-
# * Test case
84-
#
85-
# Hopefully sorting by fspath and parnt name will allow proper
86-
# order between test modules and any test classes.
87-
# We don't sort by nodeid because that changes the order of
88-
# parametrized tests which can rely on that order
89-
items.sort(key=lambda f: (f.fspath, f.parent.name))
90-
91-
9274
def pytest_collection_finish(session):
9375
if session.config._reportportal_configured is False:
9476
# Stop now if the plugin is not properly configured

0 commit comments

Comments
 (0)