MCPcopy Create free account
hub / github.com/tortoise/tortoise-orm / test_values

Function test_values

tests/fields/test_decimal.py:90–94  ·  view source on GitHub ↗
(db)

Source from the content-addressed store, hash-verified

88
89@pytest.mark.asyncio
90async def test_values(db):
91 obj0 = await testmodels.DecimalFields.create(decimal=Decimal("1.23456"), decimal_nodec=18.7)
92 values = await testmodels.DecimalFields.get(id=obj0.id).values("decimal", "decimal_nodec")
93 assert values["decimal"] == Decimal("1.2346")
94 assert values["decimal_nodec"] == 19
95
96
97@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 3

createMethod · 0.45
valuesMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…