conftest.py
11 lines · 347 bytes
1"""Ensure the project root is importable and tests run from it.
2
3Tests reference the bundled rulesets by the relative path
4``audit_report/rulesets``, 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))