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

Method _check_once

test/pymongo_mocks.py:88–92  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

86 Monitor.__init__(self, server_description, topology, pool, topology_settings)
87
88 def _check_once(self):
89 client = self.client
90 address = self._server_description.address
91 response, rtt = client.mock_hello("%s:%d" % address) # type: ignore[str-format]
92 return ServerDescription(address, Hello(response), rtt)
93
94
95class MockClient(MongoClient):

Callers

nothing calls this directly

Calls 3

ServerDescriptionClass · 0.90
HelloClass · 0.90
mock_helloMethod · 0.45

Tested by

no test coverage detected