conftest.py
python
sha256:0521dce9aca20da6ab4d9ebee6de75ab876bd82cddbc6bd4897d1ac6ecd11d3d
docs(musehub#129): freeze Phase 1 OG repo card design
Human
16 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
1 commit
sha256:6ad6d62107bbd6940c52d63327966b8a65c6391f4a3da6cd9e7548ba4b38bc48
feat(musehub#129): OG repo preview cards — endpoint, cache,…
Human
minor
⚠
16 days ago