sprite / tests /conftest.py
Cnass's picture
Upload 5 files
ebd87b7 verified
Raw History Blame Contribute Delete
345 Bytes
"""
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))