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

Method create_client

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

Source from the content-addressed store, hash-verified

52
53class TestMonitor(AsyncIntegrationTest):
54 async def create_client(self):
55 listener = ServerAndTopologyEventListener()
56 client = await self.unmanaged_async_single_client(event_listeners=[listener])
57 await 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