"""Pytest config — no DB / no network. Tests target pure functions only. Heavy runtime deps (fastapi, httpx, sqlalchemy, pydantic-settings, tenacity) are installed inside the container but not necessarily on the host. Tests that need them use pytest.importorskip; the full suite runs via `docker compose run --rm app pytest tests/`.""" from __future__ import annotations import os import sys from pathlib import Path ROOT = Path(__file__).resolve().parent.parent sys.path.insert(0, str(ROOT)) # Sentinel env so importing app.config doesn't try to read a missing .env. os.environ.setdefault("DATABASE_URL", "sqlite+aiosqlite:///:memory:") os.environ.setdefault("CASSANDRA_MOCK", "1")