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

Function test_sync_proxy_close

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

Source from the content-addressed store, hash-verified

112
113@pytest.mark.network
114def test_sync_proxy_close():
115 try:
116 transport = httpx.HTTPTransport(proxy=PROXY_URL)
117 client = httpx.Client(mounts={"https://": transport})
118 client.get("http://example.com")
119 finally:
120 client.close()
121
122
123def test_unsupported_proxy_scheme():

Callers

nothing calls this directly

Calls 2

getMethod · 0.95
closeMethod · 0.95

Tested by

no test coverage detected