audit-labs/audit-tools

A collection of scripts, queries, and other goodies you can use in an audit. audit automation compliance evidence scripts

conftest.py

v1.1.0
audit-tools/conftest.py history · blame · raw

10 lines · 315 bytes

 1"""Ensure the repository root is importable so tests can use absolute imports
 2(``from tui import ...``, ``from sampling.sampling_tool import ...``) regardless
 3of how pytest is invoked."""
 4
 5import os
 6import sys
 7
 8ROOT = os.path.dirname(os.path.abspath(__file__))
 9if ROOT not in sys.path:
10    sys.path.insert(0, ROOT)