gabriel / musehub public
conftest.py python
18 lines 595 B
Raw
sha256:1ccb8409daa5aabe577bd26d11b56ed12f3376d64011d0e75a247e81211a66ee docs(mwp4/phase5): tick Phase 5 checkboxes, close musehub#109 Sonnet 4.6 20 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:1ccb8409daa5aabe577bd26d11b56ed12f3376d64011d0e75a247e81211a66ee docs(mwp4/phase5): tick Phase 5 checkboxes, close musehub#109 Sonnet 4.6 20 days ago
sha256:2c523da45351334b5c4dbefed4dc3dd553b3faa8737a4e6caf301e5dc82141be test(mwp4): Phase 0 RED reproduction tests for RC-4 ordering race Sonnet 4.6 20 days ago