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

Function test_update_basic

tests/test_queryset.py:492–497  ·  view source on GitHub ↗
(db)

Source from the content-addressed store, hash-verified

490
491@pytest.mark.asyncio
492async def test_update_basic(db):
493 obj0 = await IntFields.create(intnum=2147483647)
494 await IntFields.filter(id=obj0.id).update(intnum=2147483646)
495 obj = await IntFields.get(id=obj0.id)
496 assert obj.intnum == 2147483646
497 assert obj.intnum_null is None
498
499
500@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 4

updateMethod · 0.80
createMethod · 0.45
filterMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…