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

Method setUp

test/test_index_management.py:90–98  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

88 cls.listener = OvertCommandListener()
89
90 def setUp(self) -> None:
91 self.client = self.simple_client(
92 self.url,
93 username=self.username,
94 password=self.password,
95 event_listeners=[self.listener],
96 )
97 self.client.drop_database(_NAME)
98 self.db = self.client[self.db_name]
99
100 def tearDown(self):
101 self.client.drop_database(_NAME)

Callers

nothing calls this directly

Calls 2

simple_clientMethod · 0.45
drop_databaseMethod · 0.45

Tested by

no test coverage detected