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

Method setUp

test/test_gridfs.py:96–102  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

94 alt: gridfs.GridFS
95
96 def setUp(self):
97 super().setUp()
98 self.fs = gridfs.GridFS(self.db)
99 self.alt = gridfs.GridFS(self.db, "alt")
100 self.cleanup_colls(
101 self.db.fs.files, self.db.fs.chunks, self.db.alt.files, self.db.alt.chunks
102 )
103
104 def test_basic(self):
105 oid = self.fs.put(b"hello world")

Callers 2

setUpMethod · 0.45
setUpMethod · 0.45

Calls 1

cleanup_collsMethod · 0.45

Tested by

no test coverage detected