(test_client_factory: TestClientFactory)
| 595 | |
| 596 | |
| 597 | def test_streaming_response_memoryview(test_client_factory: TestClientFactory) -> None: |
| 598 | app = StreamingResponse(content=iter([memoryview(b"\xc0"), memoryview(b"\xf5")])) |
| 599 | client: TestClient = test_client_factory(app) |
| 600 | response = client.get("/") |
| 601 | assert response.content == b"\xc0\xf5" |
| 602 | |
| 603 | |
| 604 | @pytest.mark.anyio |
nothing calls this directly
no test coverage detected