Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bad exception name in TestClient documentation #1000

Merged
merged 2 commits into from Jul 15, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/testclient.md
Expand Up @@ -70,7 +70,7 @@ always raised by the test client.

* `.websocket_connect(url, subprotocols=None, **options)` - Takes the same set of arguments as `requests.get()`.

May raise `starlette.websockets.Disconnect` if the application does not accept the websocket connection.
May raise `starlette.websockets.WebSocketDisconnect` if the application does not accept the websocket connection.

#### Sending data

Expand All @@ -84,7 +84,7 @@ May raise `starlette.websockets.Disconnect` if the application does not accept t
* `.receive_bytes()` - Wait for incoming bytestring sent by the application and return it.
* `.receive_json(mode="text")` - Wait for incoming json data sent by the application and return it. Use `mode="binary"` to send JSON over binary data frames.

May raise `starlette.websockets.Disconnect`.
May raise `starlette.websockets.WebSocketDisconnect`.

#### Closing the connection

Expand Down