diff options
| author | YurenHao0426 <blackhao0426@gmail.com> | 2026-01-13 23:49:05 -0600 |
|---|---|---|
| committer | YurenHao0426 <blackhao0426@gmail.com> | 2026-01-13 23:49:05 -0600 |
| commit | cd99d6b874d9d09b3bb87b8485cc787885af71f1 (patch) | |
| tree | 59a233959932ca0e4f12f196275e07fcf443b33f /files/tests/conftest.py | |
init commit
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) + + |
