MCPcopy 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_0Method · 0.70

Calls 1

DecimalFieldClass · 0.90

Tested by 1

test_precision_0Method · 0.56