MCPcopy
hub / github.com/encode/httpx / test_asgi_raw_path

Function test_asgi_raw_path

tests/test_asgi.py:115–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

113
114@pytest.mark.anyio
115async 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

Callers

nothing calls this directly

Calls 3

jsonMethod · 0.80
copy_withMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected