Home / Function/ test_invalid_ssl_certificate_files() — requests Function Reference

test_invalid_ssl_certificate_files() — requests Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

tests/test_requests.py lines 970–983

    def test_invalid_ssl_certificate_files(self, httpbin_secure):
        INVALID_PATH = "/garbage"
        with pytest.raises(IOError) as e:
            requests.get(httpbin_secure(), cert=INVALID_PATH)
        assert (
            str(e.value)
            == f"Could not find the TLS certificate file, invalid path: {INVALID_PATH}"
        )

        with pytest.raises(IOError) as e:
            requests.get(httpbin_secure(), cert=(".", INVALID_PATH))
        assert str(e.value) == (
            f"Could not find the TLS key file, invalid path: {INVALID_PATH}"
        )

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free