MCPcopy
hub / github.com/psf/requests / test_not_bypass_no_proxy_keyword

Method test_not_bypass_no_proxy_keyword

tests/test_utils.py:277–282  ·  view source on GitHub ↗
(self, url, monkeypatch)

Source from the content-addressed store, hash-verified

275 ),
276 )
277 def test_not_bypass_no_proxy_keyword(self, url, monkeypatch):
278 # This is testing that the 'no_proxy' argument overrides the
279 # environment variable 'no_proxy'
280 monkeypatch.setenv("http_proxy", "http://proxy.example.com:3128/")
281 no_proxy = "192.168.1.1,requests.com"
282 assert get_environ_proxies(url, no_proxy=no_proxy) != {}
283
284
285class TestIsIPv4Address:

Callers

nothing calls this directly

Calls 1

get_environ_proxiesFunction · 0.90

Tested by

no test coverage detected