conftest.py

v1.1.0
control-coverage/conftest.py history · blame · raw

11 lines · 351 bytes

 1"""Ensure the project root is importable and tests run from it.
 2
 3Tests reference the bundled catalogs by the relative path
 4``control_coverage/catalogs``, so pytest must be invoked from the project root.
 5This file's location pins that root for import resolution.
 6"""
 7
 8import sys
 9from pathlib import Path
10
11sys.path.insert(0, str(Path(__file__).parent))