from pathlib import Path import sys # Ensure src/ layout imports work in local pytest runs. ROOT = Path(__file__).resolve().parents[1] SRC = ROOT / "src" if str(SRC) not in sys.path: sys.path.insert(0, str(SRC))