Remove save method from test

This commit is contained in:
Erdenezul Batmunkh 2019-06-11 12:52:29 +02:00
parent 3caf2dce28
commit 1d29b824a8

View File

@ -3200,10 +3200,6 @@ class InstanceTest(MongoDBTestCase):
doc = Doc(emb=Embedded()).save() doc = Doc(emb=Embedded()).save()
doc.emb.save() # Make sure its still working doc.emb.save() # Make sure its still working
with warnings.catch_warnings(): with warnings.catch_warnings():
warnings.simplefilter("error", DeprecationWarning)
with self.assertRaises(DeprecationWarning):
doc.emb.save()
with self.assertRaises(DeprecationWarning): with self.assertRaises(DeprecationWarning):
doc.emb.reload() doc.emb.reload()