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

Method delete_one

test/test_client.py:2458–2459  ·  view source on GitHub ↗
(collection, i)

Source from the content-addressed store, hash-verified

2456 collection.insert_many([{"i": i} for i in range(NTHREADS)])
2457
2458 def delete_one(collection, i):
2459 collection.delete_one({"i": i})
2460
2461 def test(collection):
2462 self.assertEqual(0, collection.count_documents({}))

Callers 15

deleteMethod · 0.45
deleteMethod · 0.45
abortMethod · 0.45
deleteMethod · 0.45
deleteMethod · 0.45
abortMethod · 0.45
test_deleteMethod · 0.45
test_deleteMethod · 0.45
insert_docsMethod · 0.45
test_non_bulk_writesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected