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

Function test_values

tests/fields/test_float.py:53–56  ·  view source on GitHub ↗
(db)

Source from the content-addressed store, hash-verified

51
52@pytest.mark.asyncio
53async def test_values(db):
54 obj0 = await testmodels.FloatFields.create(floatnum=1.23)
55 values = await testmodels.FloatFields.filter(id=obj0.id).values("floatnum")
56 assert values[0]["floatnum"] == 1.23
57
58
59@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 3

createMethod · 0.45
valuesMethod · 0.45
filterMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…