auto-sync: 2026-06-08 23:39:15
This commit is contained in:
+9
-2
@@ -57,10 +57,17 @@ def client_with_isolation(isolated_data_root):
|
|||||||
|
|
||||||
def pytest_collection_modifyitems(config, items):
|
def pytest_collection_modifyitems(config, items):
|
||||||
if not os.environ.get("RUN_INTEGRATION"):
|
if not os.environ.get("RUN_INTEGRATION"):
|
||||||
skip = pytest.mark.skip(reason="needs RUN_INTEGRATION=1")
|
skip_reason = "needs RUN_INTEGRATION=1"
|
||||||
|
remaining = []
|
||||||
|
deselected = []
|
||||||
for item in items:
|
for item in items:
|
||||||
if "integration" in item.keywords or "e2e" in item.keywords:
|
if "integration" in item.keywords or "e2e" in item.keywords:
|
||||||
item.add_marker(skip)
|
deselected.append(item)
|
||||||
|
else:
|
||||||
|
remaining.append(item)
|
||||||
|
if deselected:
|
||||||
|
config.hook.pytest_deselected(items=deselected)
|
||||||
|
items[:] = remaining
|
||||||
|
|
||||||
|
|
||||||
skip_no_integration = pytest.mark.skipif(
|
skip_no_integration = pytest.mark.skipif(
|
||||||
|
|||||||
Reference in New Issue
Block a user