"""Site customization to ensure repository root is on sys.path during tests. This helps test runners that may not add the repo root to Python's module search path, making imports like `from core.models import ...` robust. """ import sys import os REPO_ROOT = os.path.dirname(os.path.abspath(__file__)) if REPO_ROOT not in sys.path: sys.path.insert(0, REPO_ROOT)