Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/mongodb/mongo-python-driver
/ checkout
Method
checkout
test/asynchronous/utils.py:250–251 ·
view source on GitHub ↗
(self, handler=None)
Source
from the content-addressed store, hash-verified
248
249
@contextlib.asynccontextmanager
250
async
def
checkout(self, handler=None):
251
yield
AsyncMockConnection()
252
253
async
def
checkin(self, *args, **kwargs):
254
pass
Callers
15
check_out
Method · 0.45
test_close_leaves_pool_unpaused
Method · 0.45
run_mongo_thread
Method · 0.45
test_pool_reuses_open_socket
Method · 0.45
test_get_socket_and_exception
Method · 0.45
test_pool_removes_closed_socket
Method · 0.45
test_pool_removes_dead_socket
Method · 0.45
test_return_socket_after_reset
Method · 0.45
test_pool_check
Method · 0.45
test_wait_queue_timeout
Method · 0.45
test_no_wait_queue_timeout
Method · 0.45
test_checkout_more_than_max_pool_size
Method · 0.45
Calls
1
AsyncMockConnection
Class · 0.85
Tested by
15
check_out
Method · 0.36
test_close_leaves_pool_unpaused
Method · 0.36
run_mongo_thread
Method · 0.36
test_pool_reuses_open_socket
Method · 0.36
test_get_socket_and_exception
Method · 0.36
test_pool_removes_closed_socket
Method · 0.36
test_pool_removes_dead_socket
Method · 0.36
test_return_socket_after_reset
Method · 0.36
test_pool_check
Method · 0.36
test_wait_queue_timeout
Method · 0.36
test_no_wait_queue_timeout
Method · 0.36
test_checkout_more_than_max_pool_size
Method · 0.36