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

Function test_values

tests/fields/test_array.py:42–46  ·  view source on GitHub ↗

Test array field in values().

(db_array_fields)

Source from the content-addressed store, hash-verified

40@requireCapability(dialect="postgres")
41@pytest.mark.asyncio
42async def test_values(db_array_fields):
43 """Test array field in values()."""
44 obj0 = await testmodels.ArrayFields.create(array=[0])
45 values = await testmodels.ArrayFields.get(id=obj0.id).values("array")
46 assert values["array"] == [0]
47
48
49@requireCapability(dialect="postgres")

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…