"""Shared pytest configuration. Ensures the repository root is on sys.path so tests can import the ``src`` package regardless of the working directory pytest is invoked from. """ import os import sys REPO_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) if REPO_ROOT not in sys.path: sys.path.insert(0, REPO_ROOT)