fix_minor_typo

This commit is contained in:
Bastien Gerard 2021-02-21 22:03:49 +01:00
parent af3d3b7ee6
commit aeb4f8f4da
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