(db)
| 15 | |
| 16 | @pytest.mark.asyncio |
| 17 | async def test_create(db): |
| 18 | obj0 = await testmodels.FloatFields.create(floatnum=1.23) |
| 19 | obj = await testmodels.FloatFields.get(id=obj0.id) |
| 20 | assert obj.floatnum == 1.23 |
| 21 | assert Decimal(obj.floatnum) != Decimal("1.23") |
| 22 | assert obj.floatnum_null is None |
| 23 | await obj.save() |
| 24 | obj2 = await testmodels.FloatFields.get(id=obj.id) |
| 25 | assert obj == obj2 |
| 26 | |
| 27 | |
| 28 | @pytest.mark.asyncio |