Fixes bug where an EmbeddedDocument that shares the same id of its parent Document could be missing updates when .save was called

Fixes #1768, Fixes #1685
This commit is contained in:
Bastien Gérard
2018-09-08 22:20:49 +02:00
parent d17cac8210
commit f89214f9cf
3 changed files with 79 additions and 29 deletions

View File

@@ -1029,7 +1029,6 @@ class FieldTest(unittest.TestCase):
self.assertEqual(type(foo.bar), Bar)
self.assertEqual(type(foo.baz), Baz)
def test_document_reload_reference_integrity(self):
"""
Ensure reloading a document with multiple similar id