(test_client_factory: TestClientFactory)
| 599 | |
| 600 | |
| 601 | def test_streaming_response_known_size(test_client_factory: TestClientFactory) -> None: |
| 602 | app = StreamingResponse(content=iter(["hello", "world"]), headers={"content-length": "10"}) |
| 603 | client: TestClient = test_client_factory(app) |
| 604 | response = client.get("/") |
| 605 | assert response.headers["content-length"] == "10" |
| 606 | |
| 607 | |
| 608 | def test_response_memoryview(test_client_factory: TestClientFactory) -> None: |
nothing calls this directly
no test coverage detected