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

Function test_update

tests/fields/test_char.py:36–41  ·  view source on GitHub ↗
(db)

Source from the content-addressed store, hash-verified

34
35@pytest.mark.asyncio
36async def test_update(db):
37 obj0 = await testmodels.CharFields.create(char="moo")
38 await testmodels.CharFields.filter(id=obj0.id).update(char="ba'a")
39 obj = await testmodels.CharFields.get(id=obj0.id)
40 assert obj.char == "ba'a"
41 assert obj.char_null is None
42
43
44@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…