gabriel / musehub public

conftest.py file-level

at sha256:f · View file ↗ · Intel ↗

History
1 files
1 commits
0 hotspots
0 🧊 dead
0 💥 blast risk
sha256:e fix(9A-4 F7): env alias + staging secrets for overseer provenance gate.… · aaronrene · Jul 13, 2026
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