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

Class User

tests/fields/test_fields.py:429–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427 with pytest.raises(ValueError):
428
429 class User(Document):
430 name = StringField(db_field="user.name")
431
432 # name starting with $
433 with pytest.raises(ValueError):

Calls 3

StringFieldClass · 0.90
ListFieldClass · 0.90