workspace / tests /test_encoder /conftest.py
AntonioJun's picture
Replace tests with local workspace contents
e8055cf verified
Raw
History Blame Contribute Delete
311 Bytes
"""Shared import setup for encoder tests."""
from pathlib import Path
import sys
ROOT = Path(__file__).resolve().parents[2]
for path in (ROOT, ROOT / "encoder"):
if str(path) not in sys.path:
sys.path.insert(0, str(path))
def pytest_configure(config):
config.option.importmode = "importlib"