Skip to content

Commit

Permalink
test: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
iudeen committed Jan 4, 2025
1 parent 8d211e7 commit 4e43957
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_testclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,3 +422,9 @@ async def app(scope: Scope, receive: Receive, send: Send) -> None:
with client.websocket_connect("/hello-world", params={"foo": "bar"}) as websocket:
data = websocket.receive_bytes()
assert data == b"/hello-world"


def test_timeout_deprecation() -> None:
with pytest.deprecated_call():
client = TestClient(mock_service)
client.request("GET", "/", timeout=1)

0 comments on commit 4e43957

Please sign in to comment.