conftest.py
python
sha256:1dd27e6d5c24550177b01b0a171e8375c07cf046b549e7683364706b6522d3bc
docs(#139): mark all 11 checklist items resolved, document …
Sonnet 5
12 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:1dd27e6d5c24550177b01b0a171e8375c07cf046b549e7683364706b6522d3bc
docs(#139): mark all 11 checklist items resolved, document …
Sonnet 5
12 days ago
sha256:649011bedd713e22f7dca4c4be94bdefbf3b10950d9fc80235928d0b0b823be8
docs: track issue #139 (two-column app-shell refactor) plan…
Sonnet 5
12 days ago