Skip to content

Commit 4fef214

Browse files
author
Brian Kohan
committed
fix test order
1 parent bd82a1a commit 4fef214

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

django_typer/tests/conftest.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,22 @@ def pytest_collection_modifyitems(items):
33
"""Modifies test items in place to ensure test modules run in a given order."""
44
sorted_tests = []
55
interference_tests = []
6-
adapter_tests = [] # push these to the back
6+
plugin_tests = [] # push these to the back
7+
native_plugin_tests = []
78

89
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)
1114
elif "test_interference" in test.module.__name__:
1215
interference_tests.append(test)
1316
else:
1417
sorted_tests.append(test)
1518

1619
items[:] = [
1720
*sorted_tests,
18-
*adapter_tests,
21+
*plugin_tests,
22+
*native_plugin_tests,
1923
*interference_tests,
2024
]

0 commit comments

Comments
 (0)