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

Class JustWrite

test/test_gridfs.py:50–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48
49
50class JustWrite(ConcurrentRunner):
51 def __init__(self, fs, n):
52 super().__init__()
53 self.fs = fs
54 self.n = n
55 self.daemon = True
56
57 def run(self):
58 for _ in range(self.n):
59 file = self.fs.new_file(filename="test")
60 file.write(b"hello")
61 file.close()
62
63
64class JustRead(ConcurrentRunner):

Callers 1

test_threaded_writesMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_threaded_writesMethod · 0.56