test_session_hooks_are_used_with_no_request_hooks() — requests Function Reference
Architecture documentation for the test_session_hooks_are_used_with_no_request_hooks() function in test_requests.py from the requests codebase.
Entity Profile
Dependency Diagram
graph TD 0dc496a2_880f_640a_1ebb_ba83a3bb1761["test_session_hooks_are_used_with_no_request_hooks()"] 22b80b19_26d4_cd0e_c476_3edf87b3df14["TestRequests"] 0dc496a2_880f_640a_1ebb_ba83a3bb1761 -->|defined in| 22b80b19_26d4_cd0e_c476_3edf87b3df14 style 0dc496a2_880f_640a_1ebb_ba83a3bb1761 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_requests.py lines 1166–1175
def test_session_hooks_are_used_with_no_request_hooks(self, httpbin):
def hook(*args, **kwargs):
pass
s = requests.Session()
s.hooks["response"].append(hook)
r = requests.Request("GET", httpbin())
prep = s.prepare_request(r)
assert prep.hooks["response"] != []
assert prep.hooks["response"] == [hook]
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_session_hooks_are_used_with_no_request_hooks() do?
test_session_hooks_are_used_with_no_request_hooks() is a function in the requests codebase, defined in tests/test_requests.py.
Where is test_session_hooks_are_used_with_no_request_hooks() defined?
test_session_hooks_are_used_with_no_request_hooks() is defined in tests/test_requests.py at line 1166.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free