mirror of
https://github.com/fastapi/fastapi.git
synced 2026-01-22 21:08:23 -05:00
243 B
243 B
Testing WebSockets
You can use the same TestClient to test WebSockets.
For this, you use the TestClient in a with statement, connecting to the WebSocket:
{!./src/app_testing/tutorial002.py!}