Home / Function/ test_session_get_adapter_prefix_matching_mixed_case() — requests Function Reference

test_session_get_adapter_prefix_matching_mixed_case() — requests Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

tests/test_requests.py lines 1675–1683

    def test_session_get_adapter_prefix_matching_mixed_case(self):
        mixed_case_prefix = "hTtPs://eXamPle.CoM/MixEd_CAse_PREfix"
        url_matching_prefix = mixed_case_prefix + "/full_url"

        s = requests.Session()
        my_adapter = HTTPAdapter()
        s.mount(mixed_case_prefix, my_adapter)

        assert s.get_adapter(url_matching_prefix) is my_adapter

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free