| """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" | |