audit-labs/audit-tools
A collection of scripts, queries, and other goodies you can use in an audit.
clone: git clone https://gitbay.org/audit-labs/audit-tools.git
v1.0.0: 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)