(db)
| 12 | |
| 13 | @pytest.mark.asyncio |
| 14 | async def test_create(db): |
| 15 | obj0 = await testmodels.BooleanFields.create(boolean=True) |
| 16 | obj = await testmodels.BooleanFields.get(id=obj0.id) |
| 17 | assert obj.boolean is True |
| 18 | assert obj.boolean_null is None |
| 19 | await obj.save() |
| 20 | obj2 = await testmodels.BooleanFields.get(id=obj.id) |
| 21 | assert obj == obj2 |
| 22 | |
| 23 | |
| 24 | @pytest.mark.asyncio |