MCPcopy Create free account
hub / github.com/aio-libs/aiohttp / test_proxy_http_connection_error

Function test_proxy_http_connection_error

tests/test_proxy_functional.py:361–366  ·  view source on GitHub ↗
(get_request)

Source from the content-addressed store, hash-verified

359
360
361async def test_proxy_http_connection_error(get_request) -> None:
362 url = "http://aiohttp.io/path"
363 proxy_url = "http://localhost:2242/"
364
365 with pytest.raises(aiohttp.ClientConnectorError):
366 await get_request(url=url, proxy=proxy_url)
367
368
369async def test_proxy_http_bad_response(proxy_test_server, get_request) -> None:

Callers

nothing calls this directly

Calls 1

get_requestFunction · 0.85

Tested by

no test coverage detected