summaryrefslogtreecommitdiff
path: root/tests/backends/sqlite
diff options
context:
space:
mode:
Diffstat (limited to 'tests/backends/sqlite')
-rw-r--r--tests/backends/sqlite/tests.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/backends/sqlite/tests.py b/tests/backends/sqlite/tests.py
index 97505eaa36..0669d26191 100644
--- a/tests/backends/sqlite/tests.py
+++ b/tests/backends/sqlite/tests.py
@@ -28,13 +28,13 @@ class Tests(TestCase):
"""Raise NotSupportedError when aggregating on date/time fields."""
for aggregate in (Sum, Avg, Variance, StdDev):
with self.assertRaises(NotSupportedError):
- Item.objects.all().aggregate(aggregate("time"))
+ Item.objects.aggregate(aggregate("time"))
with self.assertRaises(NotSupportedError):
- Item.objects.all().aggregate(aggregate("date"))
+ Item.objects.aggregate(aggregate("date"))
with self.assertRaises(NotSupportedError):
- Item.objects.all().aggregate(aggregate("last_modified"))
+ Item.objects.aggregate(aggregate("last_modified"))
with self.assertRaises(NotSupportedError):
- Item.objects.all().aggregate(
+ Item.objects.aggregate(
**{
"complex": aggregate("last_modified")
+ aggregate("last_modified")