Files
reflector/server/tests
Igor Loskutov 68df825734 test: fix WebSocket chat tests using async approach
Replaced TestClient-based tests with proper async WebSocket testing
using httpx_ws and threaded server pattern. TestClient has event loop
issues with WebSocket connections that were causing all tests to fail.

Changes:
- Rewrote all WebSocket tests to use aconnect_ws from httpx_ws
- Added chat_appserver fixture using threaded Uvicorn server
- Tests now use separate event loop in server thread
- All 6 tests now pass without asyncio/event loop errors
- Matches existing pattern from test_transcripts_rtc_ws.py

Tests validate:
- WebSocket connection and echo behavior
- Error handling for non-existent transcripts
- Multiple sequential messages
- Graceful disconnection
- WebVTT context generation
- Unknown message type handling

Closes fn-1.8 (End-to-end testing)
2026-01-12 20:17:42 -05:00
..
2025-11-24 22:24:03 -05:00
2023-09-13 17:26:03 +02:00
2025-12-22 12:09:20 -05:00
2025-12-22 12:09:20 -05:00
2025-12-22 12:09:20 -05:00
2025-10-20 12:55:25 -04:00
2025-11-24 22:24:03 -05:00
2025-08-13 10:03:38 -04:00