mantimon-tcg/backend/tests/socketio
Cal Corum f6e8ab5f67 Add integration tests for WebSocket game flow (TEST-002)
Create 16 integration tests across 7 test classes covering:
- JWT authentication (valid/invalid/expired tokens)
- Game join flow with Redis connection tracking
- Action execution and state broadcasting
- Turn timeout Redis operations (start/get/cancel/extend)
- Disconnection cleanup
- Spectator filtered state
- Reconnection tracking

Uses testcontainers for real Redis/Postgres integration. Completes
Phase 4 (Game Service + WebSocket) with all 18 tasks finished.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 00:02:40 -06:00
..
__init__.py Add Phase 4 WebSocket infrastructure (WS-001 through GS-001) 2026-01-28 22:21:20 -06:00
conftest.py Add integration tests for WebSocket game flow (TEST-002) 2026-01-30 00:02:40 -06:00
test_auth.py Refactor to dependency injection pattern - no monkey patching 2026-01-28 22:54:57 -06:00
test_game_flow_integration.py Add integration tests for WebSocket game flow (TEST-002) 2026-01-30 00:02:40 -06:00
test_server_setup.py Add Phase 4 WebSocket infrastructure (WS-001 through GS-001) 2026-01-28 22:21:20 -06:00