Home / Function/ test_should_bypass_proxies_pass_only_hostname() — requests Function Reference

test_should_bypass_proxies_pass_only_hostname() — requests Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

tests/test_utils.py lines 774–780

def test_should_bypass_proxies_pass_only_hostname(url, expected):
    """The proxy_bypass function should be called with a hostname or IP without
    a port number or auth credentials.
    """
    with mock.patch("requests.utils.proxy_bypass") as proxy_bypass:
        should_bypass_proxies(url, no_proxy=None)
        proxy_bypass.assert_called_once_with(expected)

Domain

Subdomains

Defined In

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free