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

Function xtest_proxy_from_env_https

tests/test_proxy_functional.py:907–919  ·  view source on GitHub ↗
(proxy_test_server, get_request, mocker)

Source from the content-addressed store, hash-verified

905
906@pytest.mark.xfail
907async def xtest_proxy_from_env_https(proxy_test_server, get_request, mocker):
908 url = "https://aiohttp.io/path"
909 proxy = await proxy_test_server()
910 mocker.patch.dict(os.environ, {"https_proxy": str(proxy.url)})
911 mocker.patch("pathlib.Path.is_file", mock_is_file)
912
913 await get_request(url=url, trust_env=True)
914
915 assert len(proxy.requests_list) == 2
916 assert proxy.request.method == "GET"
917 assert proxy.request.host == "aiohttp.io"
918 assert proxy.request.path_qs == "/path"
919 assert "Proxy-Authorization" not in proxy.request.headers
920
921
922@pytest.mark.xfail

Callers

nothing calls this directly

Calls 3

proxy_test_serverFunction · 0.85
get_requestFunction · 0.85
patchMethod · 0.45

Tested by

no test coverage detected