(db, intfields_data)
| 46 | |
| 47 | @pytest.mark.asyncio |
| 48 | async def test_exists(db, intfields_data): |
| 49 | ret = await IntFields.filter(intnum=0).exists() |
| 50 | assert not ret |
| 51 | |
| 52 | ret = await IntFields.filter(intnum=10).exists() |
| 53 | assert ret |
| 54 | |
| 55 | ret = await IntFields.filter(intnum__gt=10).exists() |
| 56 | assert ret |
| 57 | |
| 58 | ret = await IntFields.filter(intnum__lt=10).exists() |
| 59 | assert not ret |
| 60 | |
| 61 | |
| 62 | @pytest.mark.asyncio |