muthuk2 commited on
Commit
2be0211
·
verified ·
1 Parent(s): b081db0

fix: conftest.py for proper pytest path discovery

Browse files
Files changed (1) hide show
  1. backend/tests/conftest.py +8 -0
backend/tests/conftest.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ """
2
+ Pytest configuration — ensures app modules are importable.
3
+ """
4
+ import sys
5
+ from pathlib import Path
6
+
7
+ # Add backend root to path so 'from app.services...' works
8
+ sys.path.insert(0, str(Path(__file__).parent.parent))