MCPcopy Create free account
hub / github.com/mongodb/mongo-python-driver / setUp

Method setUp

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

Source from the content-addressed store, hash-verified

633
634class TestJsonMultiImport(PerformanceTest, unittest.TestCase):
635 def setUp(self):
636 super().setUp()
637 self.client = client_context.client
638 self.client.drop_database("perftest")
639 ldjson_path = os.path.join(TEST_PATH, os.path.join("parallel", "ldjson_multi"))
640 self.files = [os.path.join(ldjson_path, s) for s in os.listdir(ldjson_path)]
641 self.data_size = sum(os.path.getsize(fname) for fname in self.files)
642 self.corpus = self.client.perftest.corpus
643
644 def before(self):
645 self.client.perftest.command({"create": "corpus"})

Callers

nothing calls this directly

Calls 3

setUpMethod · 0.45
drop_databaseMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected