Skip to content

Commit b40b74d

Browse files
committed
test case fix for none feature
1 parent 718a89e commit b40b74d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_django_async_orm.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from django.conf import settings
66
from django.apps import apps
77
from unittest import IsolatedAsyncioTestCase
8-
from django.db.models.query import EmptyQuerySet
98
import time
109

1110
from .models import TestModel
@@ -138,8 +137,8 @@ async def test_async_count(self):
138137

139138
@tag('ci')
140139
async def test_async_none(self):
141-
result = await TestModel.objects.none()
142-
self.assertEqual(result, EmptyQuerySet)
140+
result = await TestModel.objects.async_none()
141+
self.assertEqual(list(result), [])
143142

144143
@tag('ci')
145144
async def test_async_aiter(self):

0 commit comments

Comments
 (0)