From 5bbe782812df249ef60f7ad9cc44482ec837bd71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastien=20G=C3=A9rard?= Date: Sat, 23 Feb 2019 22:37:32 +0100 Subject: [PATCH] fix deprecated call to pymongo save() in tests --- tests/document/instance.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/document/instance.py b/tests/document/instance.py index f9331bd0..cde18c9f 100644 --- a/tests/document/instance.py +++ b/tests/document/instance.py @@ -2758,7 +2758,7 @@ class InstanceTest(MongoDBTestCase): User.drop_collection() - User._get_collection().save({ + User._get_collection().insert_one({ 'name': 'John', 'foo': 'Bar', 'data': [1, 2, 3] @@ -2774,7 +2774,7 @@ class InstanceTest(MongoDBTestCase): User.drop_collection() - User._get_collection().save({ + User._get_collection().insert_one({ 'name': 'John', 'foo': 'Bar', 'data': [1, 2, 3] @@ -2797,7 +2797,7 @@ class InstanceTest(MongoDBTestCase): User.drop_collection() - User._get_collection().save({ + User._get_collection().insert_one({ 'name': 'John', 'thing': { 'name': 'My thing', @@ -2820,7 +2820,7 @@ class InstanceTest(MongoDBTestCase): User.drop_collection() - User._get_collection().save({ + User._get_collection().insert_one({ 'name': 'John', 'thing': { 'name': 'My thing', @@ -2843,7 +2843,7 @@ class InstanceTest(MongoDBTestCase): User.drop_collection() - User._get_collection().save({ + User._get_collection().insert_one({ 'name': 'John', 'thing': { 'name': 'My thing',