docs: #19 工具链事件中枢上下文四层改造方案 #2

Closed
pangtong-fujunshi wants to merge 33 commits from docs/19-toolchain-context-layers into main
Showing only changes of commit 041f54e699 - Show all commits
+9 -2
View File
@@ -57,10 +57,17 @@ def client_with_isolation(isolated_data_root):
def pytest_collection_modifyitems(config, items):
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:
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(