summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/async_queryset/tests.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/async_queryset/tests.py b/tests/async_queryset/tests.py
index f600cfe392..792797fb9d 100644
--- a/tests/async_queryset/tests.py
+++ b/tests/async_queryset/tests.py
@@ -225,3 +225,8 @@ class AsyncQuerySetTest(TestCase):
json.loads(result)
except json.JSONDecodeError as e:
self.fail(f"QuerySet.aexplain() result is not valid JSON: {e}")
+
+ async def test_raw(self):
+ sql = "SELECT id, field FROM async_queryset_simplemodel WHERE created=%s"
+ qs = SimpleModel.objects.raw(sql, [self.s1.created])
+ self.assertEqual([o async for o in qs], [self.s1])