Browse Source
📝 Update includes for `docs/en/docs/advanced/testing-websockets.md` (#12761)
pull/12839/head
Hamid Rasti
5 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
3 deletions
-
docs/en/docs/advanced/testing-websockets.md
|
|
@ -4,9 +4,7 @@ You can use the same `TestClient` to test WebSockets. |
|
|
|
|
|
|
|
For this, you use the `TestClient` in a `with` statement, connecting to the WebSocket: |
|
|
|
|
|
|
|
```Python hl_lines="27-31" |
|
|
|
{!../../docs_src/app_testing/tutorial002.py!} |
|
|
|
``` |
|
|
|
{* ../../docs_src/app_testing/tutorial002.py hl[27:31] *} |
|
|
|
|
|
|
|
/// note |
|
|
|
|
|
|
|