Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/MongoEngine/mongoengine
/ ModelWithEnum
Class
ModelWithEnum
tests/fields/test_enum_field.py:26–27 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
24
25
26
class
ModelWithEnum(Document):
27
status = EnumField(Status)
28
29
30
class
ModelComplexEnum(Document):
Callers
8
test_storage
Method · 0.85
test_set_enum
Method · 0.85
test_set_by_value
Method · 0.85
test_filter
Method · 0.85
test_change_value
Method · 0.85
test_enum_field_can_be_empty
Method · 0.85
test_set_none_explicitly
Method · 0.85
test_cannot_create_model_with_wrong_enum_value
Method · 0.85
Calls
1
EnumField
Class · 0.90
Tested by
8
test_storage
Method · 0.68
test_set_enum
Method · 0.68
test_set_by_value
Method · 0.68
test_filter
Method · 0.68
test_change_value
Method · 0.68
test_enum_field_can_be_empty
Method · 0.68
test_set_none_explicitly
Method · 0.68
test_cannot_create_model_with_wrong_enum_value
Method · 0.68