test_server_finishes_when_no_connections() — requests Function Reference
Architecture documentation for the test_server_finishes_when_no_connections() function in test_testserver.py from the requests codebase.
Entity Profile
Dependency Diagram
graph TD 7083856f_6b51_4436_b302_a61afa1a3f9b["test_server_finishes_when_no_connections()"] ba85c801_ef4e_5a92_0e3d_07f791306eaf["TestTestServer"] 7083856f_6b51_4436_b302_a61afa1a3f9b -->|defined in| ba85c801_ef4e_5a92_0e3d_07f791306eaf 77b5091f_26f5_443a_fd8b_425cdd5ca984["basic_response_server()"] 7083856f_6b51_4436_b302_a61afa1a3f9b -->|calls| 77b5091f_26f5_443a_fd8b_425cdd5ca984 style 7083856f_6b51_4436_b302_a61afa1a3f9b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_testserver.py lines 156–165
def test_server_finishes_when_no_connections(self):
"""the server thread exits even if there are no connections"""
server = Server.basic_response_server()
with server:
pass
assert len(server.handler_results) == 0
# if the server thread fails to finish, the test suite will hang
# and get killed by the jenkins timeout.
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does test_server_finishes_when_no_connections() do?
test_server_finishes_when_no_connections() is a function in the requests codebase, defined in tests/test_testserver.py.
Where is test_server_finishes_when_no_connections() defined?
test_server_finishes_when_no_connections() is defined in tests/test_testserver.py at line 156.
What does test_server_finishes_when_no_connections() call?
test_server_finishes_when_no_connections() 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