Commit Graph
9 Commits
Author SHA1 Message Date
IgorVolochay f8a2744492 fix(tests): reliable SecurityMiddleware state reset via app.state reference
- Store direct reference to SecurityMiddleware instance in app.state._security_middleware
  immediately at module load time in main.py (before middleware_stack is built)
- Rewrite conftest.py _reset_all() to use app.state._security_middleware instead of
  fragile middleware stack traversal that failed before the first request was made
- Set explicit client=('127.0.0.1', 50000) on ASGITransport across all test files
  to ensure guard-core always sees a valid IP and can ban/track it correctly
2026-08-25 18:13:16 +03:00
IgorVolochay 98f98fb8c1 fix(ci): explicitly pass client=('127.0.0.1', 50000) to ASGITransport in tests 2026-08-25 17:59:48 +03:00
IgorVolochay 05f9371aa8 Some bugfix in CI 2026-08-25 17:55:01 +03:00
IgorVolochay 2306855edd Some bugfix in CI 2026-08-25 16:03:02 +03:00
IgorVolochay 48fd5ea19e Add rate limiting and penetration check 2026-08-24 18:44:18 +03:00
IgorVolochay 68fcc89153 Some bugfix 2026-08-21 12:52:37 +03:00
IgorVolochay a3b7a09d79 fix: rework /get_random_cards tests 2025-03-02 17:11:50 +03:00
IgorVolochay 2556194d4c feat: add tests for cards routs 2025-02-26 19:28:12 +03:00
IgorVolochay 3dea898c32 Add test 2025-02-19 16:17:35 +03:00