MCPcopy Index your code
hub / github.com/MongoEngine/mongoengine / _not_empty

Method _not_empty

tests/fields/test_fields.py:128–129  ·  view source on GitHub ↗
(z)

Source from the content-addressed store, hash-verified

126 ):
127 # Covers introduction of a breaking change in the validation parameter (0.18)
128 def _not_empty(z):
129 return bool(z)
130
131 class Person(Document):
132 name = StringField(validation=_not_empty)

Callers

nothing calls this directly

Calls 1

ValidationErrorClass · 0.90

Tested by

no test coverage detected