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

Method create_client

test/test_monitor.py:54–58  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

52
53class TestMonitor(IntegrationTest):
54 def create_client(self):
55 listener = ServerAndTopologyEventListener()
56 client = self.unmanaged_single_client(event_listeners=[listener])
57 connected(client)
58 return client
59
60 @unittest.skipIf("PyPy" in sys.version, "PYTHON-5283 fails often on PyPy")
61 @unittest.skipIf(

Calls 3

connectedFunction · 0.90

Tested by

no test coverage detected