test_should_bypass_proxies() — requests Function Reference
Architecture documentation for the test_should_bypass_proxies() function in test_utils.py from the requests codebase.
Entity Profile
Dependency Diagram
graph TD 5c8fd968_8b47_0774_f70c_ecabcf26f233["test_should_bypass_proxies()"] 5828793e_be5b_8952_37f1_338fd4634a1a["test_utils.py"] 5c8fd968_8b47_0774_f70c_ecabcf26f233 -->|defined in| 5828793e_be5b_8952_37f1_338fd4634a1a style 5c8fd968_8b47_0774_f70c_ecabcf26f233 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_utils.py lines 746–758
def test_should_bypass_proxies(url, expected, monkeypatch):
"""Tests for function should_bypass_proxies to check if proxy
can be bypassed or not
"""
monkeypatch.setenv(
"no_proxy",
"192.168.0.0/24,127.0.0.1,localhost.localdomain,172.16.1.1, google.com:6000",
)
monkeypatch.setenv(
"NO_PROXY",
"192.168.0.0/24,127.0.0.1,localhost.localdomain,172.16.1.1, google.com:6000",
)
assert should_bypass_proxies(url, no_proxy=None) == expected
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_should_bypass_proxies() do?
test_should_bypass_proxies() is a function in the requests codebase, defined in tests/test_utils.py.
Where is test_should_bypass_proxies() defined?
test_should_bypass_proxies() is defined in tests/test_utils.py at line 746.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free