- Fixed test imports (relative → absolute package imports) - Added conftest.py for pytest path configuration - Fixed get_system_prompt() to inject crisis context when detected - Added pytest.ini configuration - Expanded tests: 49 tests covering detection, response, gateway, edge cases, router - Added deploy/rate-limit.conf for nginx http block inclusion - Updated nginx.conf with correct zone name and limit_req_status 429 - Updated BACKEND_SETUP.md with complete setup instructions
13 lines
280 B
Python
13 lines
280 B
Python
"""
|
|
Pytest configuration for the-door.
|
|
|
|
Ensures the project root is on sys.path so the `crisis` package
|
|
can be imported cleanly in tests.
|
|
"""
|
|
|
|
import sys
|
|
import os
|
|
|
|
# Add project root to path so `import crisis` works
|
|
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|