We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bedd68a commit 9f78a4cCopy full SHA for 9f78a4c
tests/conftest.py
@@ -21,6 +21,22 @@ def pytest_addoption(parser):
21
parser.addoption("--benchmark", action="store_true")
22
23
24
+def pytest_collection_modifyitems(session, config, items: list[pytest.Item]):
25
+ def order(item: pytest.Item):
26
+ if not item.parent or "test_workflow" not in item.parent.name:
27
+ return 0
28
+ if "cloud" in item.name and "sdxl" in item.name:
29
+ return 4
30
+ elif "cloud" in item.name:
31
+ return 3
32
+ elif "sdxl" in item.name:
33
+ return 2
34
+ else:
35
+ return 1
36
+
37
+ items.sort(key=order)
38
39
40
class QtTestApp:
41
def __init__(self):
42
self._app = QCoreApplication([])
0 commit comments