Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/mongodb/mongo-python-driver
/ checkout
Method
checkout
test/utils.py:248–249 ·
view source on GitHub ↗
(self, handler=None)
Source
from the content-addressed store, hash-verified
246
247
@contextlib.contextmanager
248
def
checkout(self, handler=None):
249
yield
MockConnection()
250
251
def
checkin(self, *args, **kwargs):
252
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
MockConnection
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