mirror of
https://git.zavage.net/Zavage-Software/wabot.git
synced 2026-07-21 13:06:08 -06:00
docs: sync Task 13 conftest with the dir-scoped marker fix
This commit is contained in:
parent
8682ec28fe
commit
a83a95c4e8
@ -3261,7 +3261,9 @@ BROWSERS = ["firefox", "chromium"]
|
||||
|
||||
|
||||
def pytest_collection_modifyitems(items):
|
||||
integration_dir = Path(__file__).parent
|
||||
for item in items:
|
||||
if integration_dir in item.path.parents:
|
||||
item.add_marker(pytest.mark.integration)
|
||||
|
||||
|
||||
@ -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`
|
||||
|
||||
Loading…
Reference in New Issue
Block a user