Skip to content

Commit 4979ef6

Browse files
committed
tests: add conftest to include repo root on sys.path
1 parent ff49edf commit 4979ef6

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/conftest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import os
2+
import sys
3+
4+
# Ensure the repository root is on sys.path so tests can import top-level modules
5+
ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir))
6+
if ROOT not in sys.path:
7+
sys.path.insert(0, ROOT)

0 commit comments

Comments
 (0)