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

Method setUp

test/test_bulk.py:45–49  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

43 coll_w0: Collection
44
45 def setUp(self):
46 super().setUp()
47 self.coll = self.db.test
48 self.coll.drop()
49 self.coll_w0 = self.coll.with_options(write_concern=WriteConcern(w=0))
50
51 def assertEqualResponse(self, expected, actual):
52 """Compare response from bulk.execute() to expected response."""

Callers 2

setUpMethod · 0.45
setUpMethod · 0.45

Calls 3

WriteConcernClass · 0.90
dropMethod · 0.45
with_optionsMethod · 0.45

Tested by

no test coverage detected