test_basic_waiting_server() — requests Function Reference
Architecture documentation for the test_basic_waiting_server() function in test_testserver.py from the requests codebase.
Entity Profile
Dependency Diagram
graph TD e036e1c8_f92c_b88a_ec18_21c87dc94d92["test_basic_waiting_server()"] ba85c801_ef4e_5a92_0e3d_07f791306eaf["TestTestServer"] e036e1c8_f92c_b88a_ec18_21c87dc94d92 -->|defined in| ba85c801_ef4e_5a92_0e3d_07f791306eaf 77b5091f_26f5_443a_fd8b_425cdd5ca984["basic_response_server()"] e036e1c8_f92c_b88a_ec18_21c87dc94d92 -->|calls| 77b5091f_26f5_443a_fd8b_425cdd5ca984 style e036e1c8_f92c_b88a_ec18_21c87dc94d92 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_testserver.py lines 63–76
def test_basic_waiting_server(self):
"""the server waits for the block_server event to be set before closing"""
block_server = threading.Event()
with Server.basic_response_server(wait_to_close_event=block_server) as (
host,
port,
):
sock = socket.socket()
sock.connect((host, port))
sock.sendall(b"send something")
time.sleep(2.5)
sock.sendall(b"still alive")
block_server.set() # release server block
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does test_basic_waiting_server() do?
test_basic_waiting_server() is a function in the requests codebase, defined in tests/test_testserver.py.
Where is test_basic_waiting_server() defined?
test_basic_waiting_server() is defined in tests/test_testserver.py at line 63.
What does test_basic_waiting_server() call?
test_basic_waiting_server() 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