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

Method setUp

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

Source from the content-addressed store, hash-verified

678
679class TestGridFsMultiFileUpload(PerformanceTest, unittest.TestCase):
680 def setUp(self):
681 super().setUp()
682 self.client = client_context.client
683 self.client.drop_database("perftest")
684 gridfs_path = os.path.join(TEST_PATH, os.path.join("parallel", "gridfs_multi"))
685 self.files = [os.path.join(gridfs_path, s) for s in os.listdir(gridfs_path)]
686 self.data_size = sum(os.path.getsize(fname) for fname in self.files)
687
688 def before(self):
689 self.client.perftest.drop_collection("fs.files")

Callers

nothing calls this directly

Calls 3

setUpMethod · 0.45
drop_databaseMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected