summaryrefslogtreecommitdiff
path: root/tests/aggregation_regress
diff options
context:
space:
mode:
Diffstat (limited to 'tests/aggregation_regress')
-rw-r--r--tests/aggregation_regress/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/aggregation_regress/tests.py b/tests/aggregation_regress/tests.py
index b298a1f132..7604335257 100644
--- a/tests/aggregation_regress/tests.py
+++ b/tests/aggregation_regress/tests.py
@@ -374,7 +374,7 @@ class AggregationTests(TestCase):
# Conditional aggregation of a grouped queryset.
self.assertEqual(
Book.objects.annotate(c=Count('authors')).values('pk').aggregate(test=Sum(
- Case(When(c__gt=1, then=1), output_field=IntegerField())
+ Case(When(c__gt=1, then=1))
))['test'],
3
)
@@ -382,7 +382,7 @@ class AggregationTests(TestCase):
def test_sliced_conditional_aggregate(self):
self.assertEqual(
Author.objects.all()[:5].aggregate(test=Sum(Case(
- When(age__lte=35, then=1), output_field=IntegerField()
+ When(age__lte=35, then=1)
)))['test'],
3
)