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

Function test_async_proxy_close

tests/client/test_proxies.py:104–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

102@pytest.mark.anyio
103@pytest.mark.network
104async def test_async_proxy_close():
105 try:
106 transport = httpx.AsyncHTTPTransport(proxy=PROXY_URL)
107 client = httpx.AsyncClient(mounts={"https://": transport})
108 await client.get("http://example.com")
109 finally:
110 await client.aclose()
111
112
113@pytest.mark.network

Callers

nothing calls this directly

Calls 2

getMethod · 0.95
acloseMethod · 0.95

Tested by

no test coverage detected