conftest.py
python
sha256:969ddc5e88776e70af33c016b8777bb721356508ae5f304b3fb46c451494ece7
test(mwp3): Phase 4 — fix adjacent suite regressions, lock …
Sonnet 4.6
22 days ago
| 1 | """Unit test conftest — overrides session DB fixtures with no-ops. |
| 2 | |
| 3 | Unit tests in this directory are pure-logic tests that do not touch the |
| 4 | database. The session-scoped _db_schema fixture in the parent conftest.py |
| 5 | tries to connect to the test Postgres instance; override it here so unit |
| 6 | tests can run without a live DB. |
| 7 | """ |
| 8 | from __future__ import annotations |
| 9 | |
| 10 | from collections.abc import Generator |
| 11 | |
| 12 | import pytest |
| 13 | |
| 14 | |
| 15 | @pytest.fixture(scope="session", autouse=True) |
| 16 | def _db_schema() -> Generator[None, None, None]: |
| 17 | """No-op override — unit tests do not need a database schema.""" |
| 18 | yield |
File History
2 commits
sha256:969ddc5e88776e70af33c016b8777bb721356508ae5f304b3fb46c451494ece7
test(mwp3): Phase 4 — fix adjacent suite regressions, lock …
Sonnet 4.6
22 days ago
sha256:1749b9cc5cd2583c56d3261c4c00a342c27435f3946d4bc3e70f76aa2795458a
docs(mwp-3): TDD implementation plan for job-enqueue idempo…
Opus 4.8
22 days ago