(db)
| 34 | |
| 35 | @pytest.mark.asyncio |
| 36 | async def test_update(db): |
| 37 | obj0 = await testmodels.CharFields.create(char="moo") |
| 38 | await testmodels.CharFields.filter(id=obj0.id).update(char="ba'a") |
| 39 | obj = await testmodels.CharFields.get(id=obj0.id) |
| 40 | assert obj.char == "ba'a" |
| 41 | assert obj.char_null is None |
| 42 | |
| 43 | |
| 44 | @pytest.mark.asyncio |