fix deprecated use of .update in test suite

This commit is contained in:
Bastien Gérard 2020-08-12 22:30:52 +02:00
parent ff40f66291
commit 1f2a5db016

View File

@ -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}},
)