MCPcopy
hub / github.com/encode/starlette / test_timeout_deprecation

Function test_timeout_deprecation

tests/test_testclient.py:428–433  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

426
427
428def test_timeout_deprecation() -> None:
429 with pytest.warns(
430 StarletteDeprecationWarning, match="You should not use the 'timeout' argument with the TestClient."
431 ):
432 client = TestClient(mock_service)
433 client.get("/", timeout=1)

Callers

nothing calls this directly

Calls 2

getMethod · 0.95
TestClientClass · 0.90

Tested by

no test coverage detected