We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdaa711 commit 1a8071cCopy full SHA for 1a8071c
test/test_database.py
@@ -329,10 +329,10 @@ def test_last_status(self):
329
db.test.remove({})
330
db.test.save({"i": 1})
331
332
- db.test.update({"i": 1}, {"$set": {"i": 2}})
+ db.test.update({"i": 1}, {"$set": {"i": 2}}, w=0)
333
self.assertTrue(db.last_status()["updatedExisting"])
334
335
- db.test.update({"i": 1}, {"$set": {"i": 500}})
+ db.test.update({"i": 1}, {"$set": {"i": 500}}, w=0)
336
self.assertFalse(db.last_status()["updatedExisting"])
337
338
def test_password_digest(self):
0 commit comments