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

Function test_update_badparam

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

Source from the content-addressed store, hash-verified

507
508@pytest.mark.asyncio
509async def test_update_badparam(db):
510 obj0 = await IntFields.create(intnum=2147483647)
511 with pytest.raises(FieldError, match="Unknown keyword argument"):
512 await IntFields.filter(id=obj0.id).update(badparam=1)
513
514
515@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 3

updateMethod · 0.80
createMethod · 0.45
filterMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…