Merge pull request #2476 from bagerard/fix_typo

fix_minor_typo
This commit is contained in:
Bastien Gérard 2021-02-22 19:52:08 +01:00 committed by GitHub
commit 4428842e77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -2414,7 +2414,7 @@ class LazyReferenceField(BaseField):
object is deleted object is deleted
:param passthrough: When trying to access unknown fields, the :param passthrough: When trying to access unknown fields, the
:class:`~mongoengine.base.datastructure.LazyReference` instance will :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). document. Note this only work getting field (not setting or deleting).
""" """
# XXX ValidationError raised outside of the "validate" method. # XXX ValidationError raised outside of the "validate" method.

View File

@ -306,7 +306,7 @@ class TestField(MongoDBTestCase):
) )
assert res == 1 assert res == 1
# Retrive data from db and verify it. # Retrieve data from db and verify it.
ret = HandleNoneFields.objects.all()[0] ret = HandleNoneFields.objects.all()[0]
assert ret.str_fld is None assert ret.str_fld is None
assert ret.int_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}}, {"$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() ret = HandleNoneFields.objects.first()
assert ret.str_fld is None assert ret.str_fld is None
assert ret.int_fld is None assert ret.int_fld is None