test_certificate_failure() — requests Function Reference
Architecture documentation for the test_certificate_failure() function in test_requests.py from the requests codebase.
Entity Profile
Dependency Diagram
graph TD 001d8bb9_9dd5_5517_3175_3c263404d988["test_certificate_failure()"] 22b80b19_26d4_cd0e_c476_3edf87b3df14["TestRequests"] 001d8bb9_9dd5_5517_3175_3c263404d988 -->|defined in| 22b80b19_26d4_cd0e_c476_3edf87b3df14 style 001d8bb9_9dd5_5517_3175_3c263404d988 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_requests.py lines 1051–1058
def test_certificate_failure(self, httpbin_secure):
"""
When underlying SSL problems occur, an SSLError is raised.
"""
with pytest.raises(RequestsSSLError):
# Our local httpbin does not have a trusted CA, so this call will
# fail if we use our default trust bundle.
requests.get(httpbin_secure("status", "200"))
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_certificate_failure() do?
test_certificate_failure() is a function in the requests codebase, defined in tests/test_requests.py.
Where is test_certificate_failure() defined?
test_certificate_failure() is defined in tests/test_requests.py at line 1051.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free