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

Method setUp

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

Source from the content-addressed store, hash-verified

344
345class TestDocument(PerformanceTest):
346 def setUp(self):
347 super().setUp()
348 # Location of test data.
349 with open(
350 os.path.join(TEST_PATH, os.path.join("single_and_multi_document", self.dataset))
351 ) as data:
352 self.document = json.loads(data.read())
353
354 self.client = client_context.client
355 self.client.drop_database("perftest")
356
357 def tearDown(self):
358 super().tearDown()

Callers

nothing calls this directly

Calls 4

setUpMethod · 0.45
joinMethod · 0.45
readMethod · 0.45
drop_databaseMethod · 0.45

Tested by

no test coverage detected