()
| 72 | |
| 73 | @pytest.mark.anyio |
| 74 | async def test_asgi_transport(): |
| 75 | async with httpx.ASGITransport(app=hello_world) as transport: |
| 76 | request = httpx.Request("GET", "http://www.example.com/") |
| 77 | response = await transport.handle_async_request(request) |
| 78 | await response.aread() |
| 79 | assert response.status_code == 200 |
| 80 | assert response.content == b"Hello, World!" |
| 81 | |
| 82 | |
| 83 | @pytest.mark.anyio |
nothing calls this directly
no test coverage detected