MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / __init__

Method __init__

test/utils.py:219–224  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

217
218class MockConnection:
219 def __init__(self):
220 self.cancel_context = _CancellationContext()
221 self.more_to_come = False
222 self.id = random.randint(0, 100)
223 self.is_sdam = False
224 self.server_connection_id = random.randint(0, 100)
225
226 def close_conn(self, reason):
227 pass

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected