Home / Function/ test_requests_are_updated_each_time() — requests Function Reference

test_requests_are_updated_each_time() — requests Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  f084532f_714c_d084_a6a0_106ebab86a7c["test_requests_are_updated_each_time()"]
  69ebfd6f_8f0c_4586_0c19_2c348e1a42a2["test_requests.py"]
  f084532f_714c_d084_a6a0_106ebab86a7c -->|defined in| 69ebfd6f_8f0c_4586_0c19_2c348e1a42a2
  772251a3_91b5_d6a8_857f_bb938ed045f7["send()"]
  f084532f_714c_d084_a6a0_106ebab86a7c -->|calls| 772251a3_91b5_d6a8_857f_bb938ed045f7
  style f084532f_714c_d084_a6a0_106ebab86a7c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_requests.py lines 2594–2612

def test_requests_are_updated_each_time(httpbin):
    session = RedirectSession([303, 307])
    prep = requests.Request("POST", httpbin("post")).prepare()
    r0 = session.send(prep)
    assert r0.request.method == "POST"
    assert session.calls[-1] == SendCall((r0.request,), {})
    redirect_generator = session.resolve_redirects(r0, prep)
    default_keyword_args = {
        "stream": False,
        "verify": True,
        "cert": None,
        "timeout": None,
        "allow_redirects": False,
        "proxies": {},
    }
    for response in redirect_generator:
        assert response.request.method == "GET"
        send_call = SendCall((response.request,), default_keyword_args)
        assert session.calls[-1] == send_call

Domain

Subdomains

Calls

Frequently Asked Questions

What does test_requests_are_updated_each_time() do?
test_requests_are_updated_each_time() is a function in the requests codebase, defined in tests/test_requests.py.
Where is test_requests_are_updated_each_time() defined?
test_requests_are_updated_each_time() is defined in tests/test_requests.py at line 2594.
What does test_requests_are_updated_each_time() call?
test_requests_are_updated_each_time() 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