mirror of
https://github.com/fastapi/fastapi.git
synced 2026-10-20 08:55:24 -04:00
🌐 Add Portuguese translation for docs/pt/docs/advanced/testing-websockets.md (#11994)
This commit is contained in:
1 parent
4fe1af494a
commit
60fe2b19e8
1 file changed
+15
@@ -0,0 +1,15 @@
|
||||
# Testando WebSockets
|
||||
|
||||
Você pode usar o mesmo `TestClient` para testar WebSockets.
|
||||
|
||||
Para isso, você utiliza o `TestClient` dentro de uma instrução `with`, conectando com o WebSocket:
|
||||
|
||||
```Python hl_lines="27-31"
|
||||
{!../../../docs_src/app_testing/tutorial002.py!}
|
||||
```
|
||||
|
||||
/// note | "Nota"
|
||||
|
||||
Para mais detalhes, confira a documentação do Starlette para <a href="https://www.starlette.io/testclient/#testing-websocket-sessions" class="external-link" target="_blank">testar WebSockets</a>.
|
||||
|
||||
///
|
||||
Reference in new issue
Block a user