Skip to content

Commit 4428842

Browse files
authored
Merge pull request MongoEngine#2476 from bagerard/fix_typo
fix_minor_typo
2 parents f38cc6e + aeb4f8f commit 4428842

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mongoengine/fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2414,7 +2414,7 @@ def __init__(
24142414
object is deleted
24152415
:param passthrough: When trying to access unknown fields, the
24162416
:class:`~mongoengine.base.datastructure.LazyReference` instance will
2417-
automatically call `fetch()` and try to retrive the field on the fetched
2417+
automatically call `fetch()` and try to retrieve the field on the fetched
24182418
document. Note this only work getting field (not setting or deleting).
24192419
"""
24202420
# XXX ValidationError raised outside of the "validate" method.

tests/fields/test_fields.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ class HandleNoneFields(Document):
306306
)
307307
assert res == 1
308308

309-
# Retrive data from db and verify it.
309+
# Retrieve data from db and verify it.
310310
ret = HandleNoneFields.objects.all()[0]
311311
assert ret.str_fld is None
312312
assert ret.int_fld is None
@@ -340,7 +340,7 @@ class HandleNoneFields(Document):
340340
{"$unset": {"str_fld": 1, "int_fld": 1, "flt_fld": 1, "comp_dt_fld": 1}},
341341
)
342342

343-
# Retrive data from db and verify it.
343+
# Retrieve data from db and verify it.
344344
ret = HandleNoneFields.objects.first()
345345
assert ret.str_fld is None
346346
assert ret.int_fld is None

0 commit comments

Comments
 (0)