Home / Function/ test_should_bypass_proxies_no_proxy() — requests Function Reference

test_should_bypass_proxies_no_proxy() — requests Function Reference

Architecture documentation for the test_should_bypass_proxies_no_proxy() function in test_utils.py from the requests codebase.

Entity Profile

Dependency Diagram

graph TD
  e520cdca_6649_2b5b_8aa4_2f87ce6f3b66["test_should_bypass_proxies_no_proxy()"]
  5828793e_be5b_8952_37f1_338fd4634a1a["test_utils.py"]
  e520cdca_6649_2b5b_8aa4_2f87ce6f3b66 -->|defined in| 5828793e_be5b_8952_37f1_338fd4634a1a
  style e520cdca_6649_2b5b_8aa4_2f87ce6f3b66 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_utils.py lines 825–831

def test_should_bypass_proxies_no_proxy(url, expected, monkeypatch):
    """Tests for function should_bypass_proxies to check if proxy
    can be bypassed or not using the 'no_proxy' argument
    """
    no_proxy = "192.168.0.0/24,127.0.0.1,localhost.localdomain,172.16.1.1"
    # Test 'no_proxy' argument
    assert should_bypass_proxies(url, no_proxy=no_proxy) == expected

Domain

Subdomains

Defined In

Frequently Asked Questions

What does test_should_bypass_proxies_no_proxy() do?
test_should_bypass_proxies_no_proxy() is a function in the requests codebase, defined in tests/test_utils.py.
Where is test_should_bypass_proxies_no_proxy() defined?
test_should_bypass_proxies_no_proxy() is defined in tests/test_utils.py at line 825.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free