idea193-proofweave-proof-ca.../tests/conftest.py

9 lines
264 B
Python

import sys
import os
# Ensure `src` is on sys.path so tests can import the package without installation
ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir))
SRC = os.path.join(ROOT, "src")
if SRC not in sys.path:
sys.path.insert(0, SRC)