Remove save method from test
This commit is contained in:
parent
3caf2dce28
commit
1d29b824a8
@ -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()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user