Skip to content

Commit 9fa0949

Browse files
conftest file added
1 parent 874c602 commit 9fa0949

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/tests/conftest.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import os
2+
import sys
3+
4+
# Determine the project root relative to this conftest.py file.
5+
# This file is at: <project_root>/src/tests/conftest.py
6+
# We want to add: <project_root>/src/backend to sys.path.
7+
current_dir = os.path.dirname(os.path.abspath(__file__))
8+
project_root = os.path.abspath(os.path.join(current_dir, "..")) # Goes from tests to src
9+
backend_path = os.path.join(project_root, "backend")
10+
sys.path.insert(0, backend_path)
11+
12+
print("Adjusted sys.path:", sys.path)

0 commit comments

Comments
 (0)