diff options
author | Simon Charette <charette.s@gmail.com> | 2020-06-06 14:34:38 -0400 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-07-15 10:58:38 +0200 |
commit | 156a2138db20abc89933121e4ff2ee2ce56a173a (patch) | |
tree | 294047367a3c1d87d69b0cacac3504ffc892faa3 /tests/aggregation_regress | |
parent | 1e38f1191de21b6e96736f58df57dfb851a28c1f (diff) | |
download | django-156a2138db20abc89933121e4ff2ee2ce56a173a.tar.gz |
Refs #30446 -- Removed unnecessary Value(..., output_field) in docs and tests.
Diffstat (limited to 'tests/aggregation_regress')
-rw-r--r-- | tests/aggregation_regress/tests.py | 4 |
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 ) |