From 1f2a5db016a8c3b42de91baf76696482415238ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastien=20G=C3=A9rard?= Date: Wed, 12 Aug 2020 22:30:52 +0200 Subject: [PATCH] fix deprecated use of .update in test suite --- tests/fields/test_fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fields/test_fields.py b/tests/fields/test_fields.py index 652f6903..25ecb2e7 100644 --- a/tests/fields/test_fields.py +++ b/tests/fields/test_fields.py @@ -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}}, )