"""pytest configuration — match the in-container PYTHONPATH so tests can use the same `services.x` and `infra.core.x` imports the running app does. The Dockerfile copies ``nanoclaude/`` to /app/ and ``infra/`` to /app/infra/, so /app is on PYTHONPATH and both packages resolve. Mirror that here. """ from __future__ import annotations import sys from pathlib import Path NANOCLAUDE_ROOT = Path(__file__).resolve().parent.parent GPU_SERVICES_ROOT = NANOCLAUDE_ROOT.parent for path in (NANOCLAUDE_ROOT, GPU_SERVICES_ROOT): if str(path) not in sys.path: sys.path.insert(0, str(path))