(test_client_factory: TestClientFactory)
| 529 | |
| 530 | |
| 531 | def test_empty_response(test_client_factory: TestClientFactory) -> None: |
| 532 | app = Response() |
| 533 | client: TestClient = test_client_factory(app) |
| 534 | response = client.get("/") |
| 535 | assert response.content == b"" |
| 536 | assert response.headers["content-length"] == "0" |
| 537 | assert "content-type" not in response.headers |
| 538 | |
| 539 | |
| 540 | def test_empty_204_response(test_client_factory: TestClientFactory) -> None: |
nothing calls this directly
no test coverage detected