()
| 113 | |
| 114 | @pytest.mark.anyio |
| 115 | async def test_asgi_raw_path(): |
| 116 | transport = httpx.ASGITransport(app=echo_raw_path) |
| 117 | async with httpx.AsyncClient(transport=transport) as client: |
| 118 | url = httpx.URL("http://www.example.org/").copy_with(path="/user@example.org") |
| 119 | response = await client.get(url) |
| 120 | |
| 121 | assert response.status_code == 200 |
| 122 | assert response.json() == {"raw_path": "/user@example.org"} |
| 123 | |
| 124 | |
| 125 | @pytest.mark.anyio |