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

Function test_func_route

tests/test_applications.py:170–177  ·  view source on GitHub ↗
(client: TestClient)

Source from the content-addressed store, hash-verified

168
169
170def test_func_route(client: TestClient) -> None:
171 response = client.get("/func")
172 assert response.status_code == 200
173 assert response.text == "Hello, world!"
174
175 response = client.head("/func")
176 assert response.status_code == 200
177 assert response.text == ""
178
179
180def test_async_route(client: TestClient) -> None:

Callers

nothing calls this directly

Calls 2

headMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected