(test_client_factory: TestClientFactory)
| 588 | |
| 589 | |
| 590 | def test_response_memoryview(test_client_factory: TestClientFactory) -> None: |
| 591 | app = Response(content=memoryview(b"\xc0")) |
| 592 | client: TestClient = test_client_factory(app) |
| 593 | response = client.get("/") |
| 594 | assert response.content == b"\xc0" |
| 595 | |
| 596 | |
| 597 | def test_streaming_response_memoryview(test_client_factory: TestClientFactory) -> None: |
nothing calls this directly
no test coverage detected