audit-labs/audit-tools

clone: git clone https://gitbay.org/audit-labs/audit-tools.git

main: conftest.py · raw

 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)