conftest.py

7497935cba2e8010f0870e82b48c7afd36a22055
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))