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

Function test_update

tests/fields/test_bool.py:25–30  ·  view source on GitHub ↗
(db)

Source from the content-addressed store, hash-verified

23
24@pytest.mark.asyncio
25async def test_update(db):
26 obj0 = await testmodels.BooleanFields.create(boolean=False)
27 await testmodels.BooleanFields.filter(id=obj0.id).update(boolean=False)
28 obj = await testmodels.BooleanFields.get(id=obj0.id)
29 assert obj.boolean is False
30 assert obj.boolean_null is None
31
32
33@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…