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

Function test_values

tests/fields/test_binary.py:26–32  ·  view source on GitHub ↗
(db)

Source from the content-addressed store, hash-verified

24
25@pytest.mark.asyncio
26async def test_values(db):
27 obj0 = await testmodels.BinaryFields.create(
28 binary=bytes(range(256)), binary_null=bytes(range(255, -1, -1))
29 )
30 values = await testmodels.BinaryFields.get(id=obj0.id).values("binary", "binary_null")
31 assert values["binary"] == bytes(range(256))
32 assert values["binary_null"] == bytes(range(255, -1, -1))
33
34
35@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…