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

Method init

test/__init__.py:315–318  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

313 mongos_client.close()
314
315 def init(self):
316 with self.conn_lock:
317 if not self.client and not self.connection_attempts:
318 self._init_client()
319
320 def connection_attempt_info(self):
321 return "\n".join(self.connection_attempts)

Callers 3

wrapMethod · 0.95
setupFunction · 0.45
simple_test_clientFunction · 0.45

Calls 1

_init_clientMethod · 0.95

Tested by

no test coverage detected