""" tests/conftest.py ------------------- Makes the project root importable from every test file (so `from segmentation import ...` etc. work regardless of where pytest is invoked from), without needing the project installed as a package. """ import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parent.parent))