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

Method update_one

test/test_client.py:2444–2445  ·  view source on GitHub ↗
(collection, _)

Source from the content-addressed store, hash-verified

2442
2443 # Update doc 10 times.
2444 def update_one(collection, _):
2445 collection.update_one({}, {"$inc": {"i": 1}})
2446
2447 def test(collection):
2448 self.assertEqual(NTHREADS, collection.find_one()["i"])

Callers 15

setterFunction · 0.45
renameMethod · 0.45
__setattr__Method · 0.45
setMethod · 0.45
renameMethod · 0.45
__setattr__Method · 0.45
setMethod · 0.45
test_corrupt_chunkMethod · 0.45
test_selector_calledMethod · 0.45
test_corrupt_chunkMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected