summaryrefslogtreecommitdiff
path: root/files/tests/conftest.py
blob: a63c2594d67c6f9fce135e7acb3fe9464e23c6a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
import os
import sys

# Ensure project root is importable so `import files...` works when tests are under files/tests
_HERE = os.path.dirname(__file__)
_FILES_DIR = os.path.dirname(_HERE)
_ROOT = os.path.dirname(_FILES_DIR)
if _ROOT not in sys.path:
    sys.path.insert(0, _ROOT)