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

Method setUp

test/performance/perf_test.py:330–333  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

328 data_size = len(encode({"hello": True})) * NUM_DOCS
329
330 def setUp(self):
331 super().setUp()
332 self.client = client_context.client
333 self.client.drop_database("perftest")
334
335 def do_task(self):
336 command = self.client.perftest.command

Callers

nothing calls this directly

Calls 2

setUpMethod · 0.45
drop_databaseMethod · 0.45

Tested by

no test coverage detected