Logo
Explore Help
Sign In
Timmy_Foundation/the-door
15
0
Fork 0
You've already forked the-door
Code Issues 19 Pull Requests 18 Actions Packages Projects Releases Wiki Activity
Files
b8bb9be131ca5c19cacf4cea5cc0587fa5fa548a
the-door/conftest.py

13 lines
280 B
Python
Raw Normal View History

burn: Fix crisis backend tests, gateway injection, and nginx rate limiting - 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
2026-04-09 12:34:15 -04:00
"""
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__)))
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 507ms Template: 7ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API