MCPcopy
hub / github.com/encode/starlette / test_response_memoryview

Function test_response_memoryview

tests/test_responses.py:590–594  ·  view source on GitHub ↗
(test_client_factory: TestClientFactory)

Source from the content-addressed store, hash-verified

588
589
590def 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
597def test_streaming_response_memoryview(test_client_factory: TestClientFactory) -> None:

Callers

nothing calls this directly

Calls 3

ResponseClass · 0.90
test_client_factoryFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected