Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/mongodb/mongo-python-driver
/ get_mock_overload_error
Function
get_mock_overload_error
test/test_client_backpressure.py:52–55 ·
view source on GitHub ↗
(times: int)
Source
from the content-addressed store, hash-verified
50
51
52
def
get_mock_overload_error(times: int):
53
error = mock_overload_error.copy()
54
error[
"mode"
] = {
"times"
: times}
55
return
error
56
57
58
class
TestBackpressure(IntegrationTest):
Callers
4
test_retry_overload_error_command
Method · 0.70
test_retry_overload_error_find
Method · 0.70
test_retry_overload_error_insert_one
Method · 0.70
test_retry_overload_error_update_many
Method · 0.70
Calls
1
copy
Method · 0.80
Tested by
no test coverage detected