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

Function test_update

tests/test_validators.py:113–118  ·  view source on GitHub ↗
(db)

Source from the content-addressed store, hash-verified

111
112@pytest.mark.asyncio
113async def test_update(db):
114 record = await ValidatorModel.create(min_value_decimal=Decimal("2"))
115
116 record.min_value_decimal = Decimal("0.9")
117 with pytest.raises(ValidationError):
118 await record.save()

Callers

nothing calls this directly

Calls 2

saveMethod · 0.80
createMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…