(db)
| 13 | |
| 14 | @pytest.mark.asyncio |
| 15 | async def test_create(db): |
| 16 | obj0 = await testmodels.TextFields.create(text="baaa" * 32000) |
| 17 | obj = await testmodels.TextFields.get(id=obj0.id) |
| 18 | assert obj.text == "baaa" * 32000 |
| 19 | assert obj.text_null is None |
| 20 | await obj.save() |
| 21 | obj2 = await testmodels.TextFields.get(id=obj.id) |
| 22 | assert obj == obj2 |
| 23 | |
| 24 | |
| 25 | @pytest.mark.asyncio |