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

Function test_empty_204_response

tests/test_responses.py:540–544  ·  view source on GitHub ↗
(test_client_factory: TestClientFactory)

Source from the content-addressed store, hash-verified

538
539
540def test_empty_204_response(test_client_factory: TestClientFactory) -> None:
541 app = Response(status_code=204)
542 client: TestClient = test_client_factory(app)
543 response = client.get("/")
544 assert "content-length" not in response.headers
545
546
547def test_non_empty_response(test_client_factory: TestClientFactory) -> None:

Callers

nothing calls this directly

Calls 3

ResponseClass · 0.90
test_client_factoryFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected