Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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):
Callers
8
test_list_validation
Method · 0.70
test_embedded_document_inheritance_with_list
Method · 0.70
test_list_item_dereference
Method · 0.70
test_generic_reference_list
Method · 0.70
test_generic_reference_document_not_registered
Method · 0.70
test_generic_reference_list_choices
Method · 0.70
test_generic_reference_list_item_modification
Method · 0.70
test__no_dereference_for_fields
Method · 0.70
Calls
3
StringField
Class · 0.90
ListField
Class · 0.90
GenericReferenceField
Class · 0.90
Tested by
8
test_list_validation
Method · 0.56
test_embedded_document_inheritance_with_list
Method · 0.56
test_list_item_dereference
Method · 0.56
test_generic_reference_list
Method · 0.56
test_generic_reference_document_not_registered
Method · 0.56
test_generic_reference_list_choices
Method · 0.56
test_generic_reference_list_item_modification
Method · 0.56
test__no_dereference_for_fields
Method · 0.56