File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -3,18 +3,22 @@ def pytest_collection_modifyitems(items):
3
3
"""Modifies test items in place to ensure test modules run in a given order."""
4
4
sorted_tests = []
5
5
interference_tests = []
6
- adapter_tests = [] # push these to the back
6
+ plugin_tests = [] # push these to the back
7
+ native_plugin_tests = []
7
8
8
9
for test in items :
9
- if "plugin" in test .module .__name__ :
10
- adapter_tests .append (test )
10
+ if "plugin_pattern" in test .module .__name__ :
11
+ plugin_tests .append (test )
12
+ elif "native_plugin" in test .module .__name__ :
13
+ native_plugin_tests .append (test )
11
14
elif "test_interference" in test .module .__name__ :
12
15
interference_tests .append (test )
13
16
else :
14
17
sorted_tests .append (test )
15
18
16
19
items [:] = [
17
20
* sorted_tests ,
18
- * adapter_tests ,
21
+ * plugin_tests ,
22
+ * native_plugin_tests ,
19
23
* interference_tests ,
20
24
]
You can’t perform that action at this time.
0 commit comments