test_auth_is_retained_for_redirect_on_host() — requests Function Reference
Architecture documentation for the test_auth_is_retained_for_redirect_on_host() function in test_requests.py from the requests codebase.
Entity Profile
Dependency Diagram
graph TD 8ce101ec_641d_8750_43a8_510a7a094856["test_auth_is_retained_for_redirect_on_host()"] 22b80b19_26d4_cd0e_c476_3edf87b3df14["TestRequests"] 8ce101ec_641d_8750_43a8_510a7a094856 -->|defined in| 22b80b19_26d4_cd0e_c476_3edf87b3df14 style 8ce101ec_641d_8750_43a8_510a7a094856 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_requests.py lines 1894–1899
def test_auth_is_retained_for_redirect_on_host(self, httpbin):
r = requests.get(httpbin("redirect/1"), auth=("user", "pass"))
h1 = r.history[0].request.headers["Authorization"]
h2 = r.request.headers["Authorization"]
assert h1 == h2
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_auth_is_retained_for_redirect_on_host() do?
test_auth_is_retained_for_redirect_on_host() is a function in the requests codebase, defined in tests/test_requests.py.
Where is test_auth_is_retained_for_redirect_on_host() defined?
test_auth_is_retained_for_redirect_on_host() is defined in tests/test_requests.py at line 1894.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free