Home / Function/ test_hook_receives_request_arguments() — requests Function Reference

test_hook_receives_request_arguments() — requests Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  62aa4797_6155_0218_7a8f_55217a15a716["test_hook_receives_request_arguments()"]
  22b80b19_26d4_cd0e_c476_3edf87b3df14["TestRequests"]
  62aa4797_6155_0218_7a8f_55217a15a716 -->|defined in| 22b80b19_26d4_cd0e_c476_3edf87b3df14
  772251a3_91b5_d6a8_857f_bb938ed045f7["send()"]
  62aa4797_6155_0218_7a8f_55217a15a716 -->|calls| 772251a3_91b5_d6a8_857f_bb938ed045f7
  style 62aa4797_6155_0218_7a8f_55217a15a716 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_requests.py lines 1156–1164

    def test_hook_receives_request_arguments(self, httpbin):
        def hook(resp, **kwargs):
            assert resp is not None
            assert kwargs != {}

        s = requests.Session()
        r = requests.Request("GET", httpbin(), hooks={"response": hook})
        prep = s.prepare_request(r)
        s.send(prep)

Domain

Subdomains

Calls

Frequently Asked Questions

What does test_hook_receives_request_arguments() do?
test_hook_receives_request_arguments() is a function in the requests codebase, defined in tests/test_requests.py.
Where is test_hook_receives_request_arguments() defined?
test_hook_receives_request_arguments() is defined in tests/test_requests.py at line 1156.
What does test_hook_receives_request_arguments() call?
test_hook_receives_request_arguments() calls 1 function(s): send.

Analyze Your Own Codebase

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

Try Supermodel Free