Skip to content

Commit 492647b

Browse files
author
andrepsousa
committed
test: add conftest to ensure src is importable in CI
1 parent 1af2742 commit 492647b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/conftest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import os
2+
import sys
3+
4+
PROJECT_ROOT = os.path.abspath(os.path.join(os.path.dirname(_file_), ".."))
5+
if PROJECT_ROOT not in sys.path:
6+
sys.path.insert(0PROJECT_ROOT)

0 commit comments

Comments
 (0)