Test that creating without required JSON field raises IntegrityError.
(db)
| 18 | |
| 19 | @pytest.mark.asyncio |
| 20 | async def test_empty(db): |
| 21 | """Test that creating without required JSON field raises IntegrityError.""" |
| 22 | with pytest.raises(IntegrityError): |
| 23 | await testmodels.JSONFields.create() |
| 24 | |
| 25 | |
| 26 | class MyPydanticModel(BaseModel): |
nothing calls this directly
no test coverage detected
searching dependent graphs…