Tests for function should_bypass_proxies to check if proxy can be bypassed or not using the 'no_proxy' argument
(url, expected, monkeypatch)
| 836 | ), |
| 837 | ) |
| 838 | def 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( |
nothing calls this directly
no test coverage detected