mirror of https://github.com/tiangolo/fastapi.git
📝 Update includes for `docs/en/docs/advanced/testing-websockets.md` (#12761)
This commit is contained in:
parent
18ca10cee4
commit
52e8ea4c97
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue