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

Method asyncSetUp

test/asynchronous/test_collation.py:101–108  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

99
100 @async_client_context.require_connection
101 async def asyncSetUp(self) -> None:
102 await super().asyncSetUp()
103 self.listener = OvertCommandListener()
104 self.client = await self.async_rs_or_single_client(event_listeners=[self.listener])
105 self.db = self.client.pymongo_test
106 self.collation = Collation("en_US")
107 self.warn_context = warnings.catch_warnings()
108 self.warn_context.__enter__()
109
110 async def asyncTearDown(self) -> None:
111 self.warn_context.__exit__()

Callers

nothing calls this directly

Calls 4

CollationClass · 0.90
__enter__Method · 0.45

Tested by

no test coverage detected