We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 718a89e commit b40b74dCopy full SHA for b40b74d
tests/test_django_async_orm.py
@@ -5,7 +5,6 @@
5
from django.conf import settings
6
from django.apps import apps
7
from unittest import IsolatedAsyncioTestCase
8
-from django.db.models.query import EmptyQuerySet
9
import time
10
11
from .models import TestModel
@@ -138,8 +137,8 @@ async def test_async_count(self):
138
137
139
@tag('ci')
140
async def test_async_none(self):
141
- result = await TestModel.objects.none()
142
- self.assertEqual(result, EmptyQuerySet)
+ result = await TestModel.objects.async_none()
+ self.assertEqual(list(result), [])
143
144
145
async def test_async_aiter(self):
0 commit comments