test_proxy_error_on_bad_url() — requests Function Reference
Architecture documentation for the test_proxy_error_on_bad_url() function in test_requests.py from the requests codebase.
Entity Profile
Dependency Diagram
graph TD d5fdff20_0908_c3c3_f13e_e90655d05046["test_proxy_error_on_bad_url()"] 22b80b19_26d4_cd0e_c476_3edf87b3df14["TestRequests"] d5fdff20_0908_c3c3_f13e_e90655d05046 -->|defined in| 22b80b19_26d4_cd0e_c476_3edf87b3df14 style d5fdff20_0908_c3c3_f13e_e90655d05046 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_requests.py lines 596–607
def test_proxy_error_on_bad_url(self, httpbin, httpbin_secure):
with pytest.raises(InvalidProxyURL):
requests.get(httpbin_secure(), proxies={"https": "http:/badproxyurl:3128"})
with pytest.raises(InvalidProxyURL):
requests.get(httpbin(), proxies={"http": "http://:8080"})
with pytest.raises(InvalidProxyURL):
requests.get(httpbin_secure(), proxies={"https": "https://"})
with pytest.raises(InvalidProxyURL):
requests.get(httpbin(), proxies={"http": "http:///example.com:8080"})
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_proxy_error_on_bad_url() do?
test_proxy_error_on_bad_url() is a function in the requests codebase, defined in tests/test_requests.py.
Where is test_proxy_error_on_bad_url() defined?
test_proxy_error_on_bad_url() is defined in tests/test_requests.py at line 596.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free