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

Method setUp

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

Source from the content-addressed store, hash-verified

407 dataset = "small_doc.json"
408
409 def setUp(self):
410 super().setUp()
411 self.data_size = len(encode(self.document)) * NUM_DOCS * 2
412 self.documents = [self.document.copy() for _ in range(NUM_DOCS)]
413
414
415class TestSmallDocInsertOne(SmallDocInsertTest, unittest.TestCase):

Callers

nothing calls this directly

Calls 3

encodeFunction · 0.90
copyMethod · 0.80
setUpMethod · 0.45

Tested by

no test coverage detected