(db)
| 84 | |
| 85 | @pytest.mark.asyncio |
| 86 | async def test_prevent_saving(db): |
| 87 | with pytest.raises(ValidationError): |
| 88 | await ValidatorModel.create(min_value_decimal=Decimal("0.9")) |
| 89 | |
| 90 | assert await ValidatorModel.all().count() == 0 |
| 91 | |
| 92 | |
| 93 | @pytest.mark.asyncio |