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

Function test_save

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

Source from the content-addressed store, hash-verified

92
93@pytest.mark.asyncio
94async def test_save(db):
95 with pytest.raises(ValidationError):
96 record = ValidatorModel(min_value_decimal=Decimal("0.9"))
97 await record.save()
98
99 record.min_value_decimal = Decimal("1.5")
100 await record.save()
101
102
103@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 2

ValidatorModelClass · 0.90
saveMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…