(scope: Scope, receive: Receive, send: Send)
| 25 | |
| 26 | def test_text_response(test_client_factory: TestClientFactory) -> None: |
| 27 | async def app(scope: Scope, receive: Receive, send: Send) -> None: |
| 28 | response = Response("hello, world", media_type="text/plain") |
| 29 | await response(scope, receive, send) |
| 30 | |
| 31 | client = test_client_factory(app) |
| 32 | response = client.get("/") |
no test coverage detected