Home / Function/ test_request_recovery_with_bigger_timeout() — requests Function Reference

test_request_recovery_with_bigger_timeout() — requests Function Reference

Architecture documentation for the test_request_recovery_with_bigger_timeout() function in test_testserver.py from the requests codebase.

Entity Profile

Dependency Diagram

graph TD
  aaa54bb3_9b7e_3fd2_c5e3_f5cc1b9d84f7["test_request_recovery_with_bigger_timeout()"]
  ba85c801_ef4e_5a92_0e3d_07f791306eaf["TestTestServer"]
  aaa54bb3_9b7e_3fd2_c5e3_f5cc1b9d84f7 -->|defined in| ba85c801_ef4e_5a92_0e3d_07f791306eaf
  77b5091f_26f5_443a_fd8b_425cdd5ca984["basic_response_server()"]
  aaa54bb3_9b7e_3fd2_c5e3_f5cc1b9d84f7 -->|calls| 77b5091f_26f5_443a_fd8b_425cdd5ca984
  style aaa54bb3_9b7e_3fd2_c5e3_f5cc1b9d84f7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_testserver.py lines 130–142

    def test_request_recovery_with_bigger_timeout(self):
        """a biggest timeout can be specified"""
        server = Server.basic_response_server(request_timeout=3)
        data = b"bananadine"

        with server as address:
            sock = socket.socket()
            sock.connect(address)
            time.sleep(1.5)
            sock.sendall(data)
            sock.close()

        assert server.handler_results[0] == data

Domain

Subdomains

Frequently Asked Questions

What does test_request_recovery_with_bigger_timeout() do?
test_request_recovery_with_bigger_timeout() is a function in the requests codebase, defined in tests/test_testserver.py.
Where is test_request_recovery_with_bigger_timeout() defined?
test_request_recovery_with_bigger_timeout() is defined in tests/test_testserver.py at line 130.
What does test_request_recovery_with_bigger_timeout() call?
test_request_recovery_with_bigger_timeout() calls 1 function(s): basic_response_server.

Analyze Your Own Codebase

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

Try Supermodel Free