Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/MongoEngine/mongoengine
/ TestDoc
Class
TestDoc
tests/fields/test_decimal_field.py:127–128 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
125
""
"prevent regression of a bug that was raising an exception when using precision=0"
""
126
127
class
TestDoc(Document):
128
d = DecimalField(precision=0)
129
130
TestDoc.drop_collection()
131
Callers
1
test_precision_0
Method · 0.70
Calls
1
DecimalField
Class · 0.90
Tested by
1
test_precision_0
Method · 0.56