(
test_client_factory: TestClientFactory,
)
| 572 | |
| 573 | |
| 574 | def test_streaming_response_unknown_size( |
| 575 | test_client_factory: TestClientFactory, |
| 576 | ) -> None: |
| 577 | app = StreamingResponse(content=iter(["hello", "world"])) |
| 578 | client: TestClient = test_client_factory(app) |
| 579 | response = client.get("/") |
| 580 | assert "content-length" not in response.headers |
| 581 | |
| 582 | |
| 583 | def test_streaming_response_known_size(test_client_factory: TestClientFactory) -> None: |
nothing calls this directly
no test coverage detected