test_session_get_adapter_prefix_without_trailing_slash() — requests Function Reference
Architecture documentation for the test_session_get_adapter_prefix_without_trailing_slash() function in test_requests.py from the requests codebase.
Entity Profile
Dependency Diagram
graph TD d4fc507f_93ef_d72d_4933_58289d4ce4b2["test_session_get_adapter_prefix_without_trailing_slash()"] 22b80b19_26d4_cd0e_c476_3edf87b3df14["TestRequests"] d4fc507f_93ef_d72d_4933_58289d4ce4b2 -->|defined in| 22b80b19_26d4_cd0e_c476_3edf87b3df14 style d4fc507f_93ef_d72d_4933_58289d4ce4b2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_requests.py lines 1710–1721
def test_session_get_adapter_prefix_without_trailing_slash(self):
# from issue #6935
prefix = "https://example.com" # no trailing slash
url_matching_prefix = "https://example.com/some/path"
url_extended_hostname = "https://example.com.other.com/some/path"
s = requests.Session()
adapter = HTTPAdapter()
s.mount(prefix, adapter)
assert s.get_adapter(url_matching_prefix) is adapter
assert s.get_adapter(url_extended_hostname) is adapter
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_session_get_adapter_prefix_without_trailing_slash() do?
test_session_get_adapter_prefix_without_trailing_slash() is a function in the requests codebase, defined in tests/test_requests.py.
Where is test_session_get_adapter_prefix_without_trailing_slash() defined?
test_session_get_adapter_prefix_without_trailing_slash() is defined in tests/test_requests.py at line 1710.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free