(
test_client_factory: TestClientFactory,
)
| 590 | |
| 591 | |
| 592 | def test_streaming_response_unknown_size( |
| 593 | test_client_factory: TestClientFactory, |
| 594 | ) -> None: |
| 595 | app = StreamingResponse(content=iter(["hello", "world"])) |
| 596 | client: TestClient = test_client_factory(app) |
| 597 | response = client.get("/") |
| 598 | assert "content-length" not in response.headers |
| 599 | |
| 600 | |
| 601 | def test_streaming_response_known_size(test_client_factory: TestClientFactory) -> None: |
nothing calls this directly
no test coverage detected