fix test and changelog

This commit is contained in:
Bastien Gerard 2021-08-02 21:56:50 +02:00
parent 5a41998eda
commit 66978aea67
2 changed files with 3 additions and 4 deletions

View File

@ -8,13 +8,12 @@ Development
===========
- (Fill this out as you fix issues and develop your features).
- EnumField improvements: now `choices` limits the values of an enum to allow
- Missing `._instance` field after deepcopy of EmbeddedField (#2202
- Fix deepcopy of EmbeddedDocument #2202
Changes in 0.23.1
===========
- Bug fix: ignore LazyReferenceFields when clearing _changed_fields #2484
- Improve connection doc #2481
- Fix deepcopy on EmbeddedDocument
Changes in 0.23.0
=================

View File

@ -377,7 +377,7 @@ class TestGenericEmbeddedDocumentField(MongoDBTestCase):
)
assert doc.wallet._instance == doc
copied_emb_doc = deepcopy(doc.wallet)
assert copied_emb_doc._instance == doc
assert copied_emb_doc._instance is None
copied_map_emb_doc = deepcopy(doc.wallet_map)
assert copied_map_emb_doc["test"]._instance == doc
assert copied_map_emb_doc["test"]._instance is None