File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -484,18 +484,18 @@ def test_options(self):
484484
485485 def test_insert_find_one (self ):
486486 db = self .db
487- db .test .remove ({})
487+ db .test .remove ({}, safe = True )
488488 self .assertEqual (db .test .find ().count (), 0 )
489489 doc = {"hello" : u"world" }
490- id = db .test .insert (doc )
490+ id = db .test .insert (doc , safe = True )
491491 self .assertEqual (db .test .find ().count (), 1 )
492492 self .assertEqual (doc , db .test .find_one ())
493493 self .assertEqual (doc ["_id" ], id )
494494 self .assert_ (isinstance (id , ObjectId ))
495495
496496 def remove_insert_find_one (dict ):
497- db .test .remove ({})
498- db .test .insert (dict )
497+ db .test .remove ({}, safe = True )
498+ db .test .insert (dict , safe = True )
499499 return db .test .find_one () == dict
500500
501501 qcheck .check_unittest (self , remove_insert_find_one ,
You can’t perform that action at this time.
0 commit comments