Home / Function/ test_proxy_error() — requests Function Reference

test_proxy_error() — requests Function Reference

Architecture documentation for the test_proxy_error() function in test_requests.py from the requests codebase.

Entity Profile

Dependency Diagram

graph TD
  6d2e0e1f_0e31_3936_70b0_8237f478e52b["test_proxy_error()"]
  22b80b19_26d4_cd0e_c476_3edf87b3df14["TestRequests"]
  6d2e0e1f_0e31_3936_70b0_8237f478e52b -->|defined in| 22b80b19_26d4_cd0e_c476_3edf87b3df14
  style 6d2e0e1f_0e31_3936_70b0_8237f478e52b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_requests.py lines 589–594

    def test_proxy_error(self):
        # any proxy related error (address resolution, no route to host, etc) should result in a ProxyError
        with pytest.raises(ProxyError):
            requests.get(
                "http://localhost:1", proxies={"http": "non-resolvable-address"}
            )

Domain

Subdomains

Frequently Asked Questions

What does test_proxy_error() do?
test_proxy_error() is a function in the requests codebase, defined in tests/test_requests.py.
Where is test_proxy_error() defined?
test_proxy_error() is defined in tests/test_requests.py at line 589.

Analyze Your Own Codebase

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

Try Supermodel Free