import sys
from pathlib import Path
# Ensure the source package in src/ is importable during pytest
ROOT = Path(__file__).resolve().parents[1]
SRC = ROOT / 'src'
if str(SRC) not in sys.path:
sys.path.insert(0, str(SRC))