fix deprecated use of .update in test suite
This commit is contained in:
parent
ff40f66291
commit
1f2a5db016
@ -336,7 +336,7 @@ class TestField(MongoDBTestCase):
|
||||
doc.save()
|
||||
|
||||
# Unset all the fields
|
||||
HandleNoneFields._get_collection().update(
|
||||
HandleNoneFields._get_collection().update_one(
|
||||
{"_id": doc.id},
|
||||
{"$unset": {"str_fld": 1, "int_fld": 1, "flt_fld": 1, "comp_dt_fld": 1}},
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user