File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed
Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff 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-
9274def pytest_collection_finish (session ):
9375 if session .config ._reportportal_configured is False :
9476 # Stop now if the plugin is not properly configured
You can’t perform that action at this time.
0 commit comments