From aeb4f8f4dae778a79c65b7a0de1b209695d0d18a Mon Sep 17 00:00:00 2001 From: Bastien Gerard Date: Sun, 21 Feb 2021 22:03:49 +0100 Subject: [PATCH] fix_minor_typo --- mongoengine/fields.py | 2 +- tests/fields/test_fields.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mongoengine/fields.py b/mongoengine/fields.py index c20333a8..477138a1 100644 --- a/mongoengine/fields.py +++ b/mongoengine/fields.py @@ -2414,7 +2414,7 @@ class LazyReferenceField(BaseField): object is deleted :param passthrough: When trying to access unknown fields, the :class:`~mongoengine.base.datastructure.LazyReference` instance will - automatically call `fetch()` and try to retrive the field on the fetched + automatically call `fetch()` and try to retrieve the field on the fetched document. Note this only work getting field (not setting or deleting). """ # XXX ValidationError raised outside of the "validate" method. diff --git a/tests/fields/test_fields.py b/tests/fields/test_fields.py index f7272619..ab3ee0c8 100644 --- a/tests/fields/test_fields.py +++ b/tests/fields/test_fields.py @@ -306,7 +306,7 @@ class TestField(MongoDBTestCase): ) assert res == 1 - # Retrive data from db and verify it. + # Retrieve data from db and verify it. ret = HandleNoneFields.objects.all()[0] assert ret.str_fld is None assert ret.int_fld is None @@ -340,7 +340,7 @@ class TestField(MongoDBTestCase): {"$unset": {"str_fld": 1, "int_fld": 1, "flt_fld": 1, "comp_dt_fld": 1}}, ) - # Retrive data from db and verify it. + # Retrieve data from db and verify it. ret = HandleNoneFields.objects.first() assert ret.str_fld is None assert ret.int_fld is None