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

Function test_should_bypass_proxies_no_proxy

tests/test_utils.py:838–844  ·  view source on GitHub ↗

Tests for function should_bypass_proxies to check if proxy can be bypassed or not using the 'no_proxy' argument

(url, expected, monkeypatch)

Source from the content-addressed store, hash-verified

836 ),
837)
838def test_should_bypass_proxies_no_proxy(url, expected, monkeypatch):
839 """Tests for function should_bypass_proxies to check if proxy
840 can be bypassed or not using the 'no_proxy' argument
841 """
842 no_proxy = "192.168.0.0/24,127.0.0.1,localhost.localdomain,172.16.1.1"
843 # Test 'no_proxy' argument
844 assert should_bypass_proxies(url, no_proxy=no_proxy) == expected
845
846
847@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

should_bypass_proxiesFunction · 0.90

Tested by

no test coverage detected