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

Class JustWrite

test/test_gridfs_bucket.py:53–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51
52
53class JustWrite(ConcurrentRunner):
54 def __init__(self, gfs, num):
55 super().__init__()
56 self.gfs = gfs
57 self.num = num
58 self.daemon = True
59
60 def run(self):
61 for _ in range(self.num):
62 file = self.gfs.open_upload_stream("test")
63 file.write(b"hello")
64 file.close()
65
66
67class JustRead(ConcurrentRunner):

Callers 1

test_threaded_writesMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_threaded_writesMethod · 0.56