From a83a95c4e815ac24c06115a2e6f09b49a8b5cea2 Mon Sep 17 00:00:00 2001 From: Mathew Sir Guest the best Date: Wed, 8 Jul 2026 22:37:37 -0600 Subject: [PATCH] docs: sync Task 13 conftest with the dir-scoped marker fix --- docs/superpowers/plans/2026-07-07-wabot-modernization.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/superpowers/plans/2026-07-07-wabot-modernization.md b/docs/superpowers/plans/2026-07-07-wabot-modernization.md index 9b58327..1ba359d 100644 --- a/docs/superpowers/plans/2026-07-07-wabot-modernization.md +++ b/docs/superpowers/plans/2026-07-07-wabot-modernization.md @@ -3261,8 +3261,10 @@ BROWSERS = ["firefox", "chromium"] def pytest_collection_modifyitems(items): + integration_dir = Path(__file__).parent for item in items: - item.add_marker(pytest.mark.integration) + if integration_dir in item.path.parents: + item.add_marker(pytest.mark.integration) @pytest.fixture(scope="session") @@ -3285,6 +3287,8 @@ def store(tmp_path): return SessionStore(path=tmp_path / "sessions.json") ``` +Note: the marker must be scoped to the integration dir — an unscoped hook marks the entire test tree and silently deselects the unit suite. + - [ ] **Step 3: Verify collection behaves** Run: `uv run pytest --collect-only tests/integration`