fix: conftest.py for proper pytest path discovery
Browse files
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))
|