diff options
Diffstat (limited to 'files/tests/conftest.py')
| -rw-r--r-- | files/tests/conftest.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/files/tests/conftest.py b/files/tests/conftest.py new file mode 100644 index 0000000..a63c259 --- /dev/null +++ b/files/tests/conftest.py @@ -0,0 +1,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) + + |
