Skip to content

Commit 5c746ff

Browse files
authored
chore(tests): add tests/conftest.py to adjust PYTHONPATH for src module
Added tests/conftest.py to prepend the project root to sys.path, ensuring that the src package is discoverable during test runs.
1 parent 21d3325 commit 5c746ff

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/conftest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import sys
2+
import os
3+
4+
# Append project root directory to sys.path to import modules from src
5+
sys.path.insert(0, os.path.abspath(
6+
os.path.join(os.path.dirname(__file__), '..')
7+
))

0 commit comments

Comments
 (0)