From ec2bd9b3ecb3730b333eb11d94bbbb48aebe2701 Mon Sep 17 00:00:00 2001 From: cfdaily Date: Mon, 8 Jun 2026 23:38:34 +0800 Subject: [PATCH] auto-sync: 2026-06-08 23:38:34 (catch-all) --- pyproject.toml | 2 +- tests/conftest.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 61c214d..47b40c4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ markers = [ "integration: integration tests (requires RUN_INTEGRATION=1)", "e2e: end-to-end tests with real daemon + Agent (requires RUN_INTEGRATION=1)", ] -addopts = "-m 'not integration and not e2e'" +addopts = "-m not integration and not e2e" [tool.pyright] venvPath = "." diff --git a/tests/conftest.py b/tests/conftest.py index ba0bd54..1eca4f9 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -21,6 +21,10 @@ def pytest_configure(config): for name, desc in markers.items(): config.addinivalue_line("markers", f"{name}: {desc}") + # When RUN_INTEGRATION=1, remove default marker filter so integration/e2e tests run + if os.environ.get("RUN_INTEGRATION"): + config.known_args_namespace.markexpr = "" + @pytest.fixture def isolated_data_root(tmp_path):