(proxy_test_server, get_request, mocker)
| 905 | |
| 906 | @pytest.mark.xfail |
| 907 | async 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 |
nothing calls this directly
no test coverage detected