1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Refs #33397 -- Added extra tests for resolving an output_field of CombinedExpression.

This commit is contained in:
Luke Plant
2022-03-30 10:56:13 +02:00
committed by Mariusz Felisiak
parent fac662f479
commit 04ad0f26ba
2 changed files with 90 additions and 1 deletions

View File

@@ -486,6 +486,7 @@ class NonAggregateAnnotationTestCase(TestCase):
book2 = Book.objects.annotate(adjusted_rating=None + F("rating")).get(
pk=self.b1.pk
)
self.assertIs(book1.adjusted_rating, None)
self.assertEqual(book1.adjusted_rating, book2.adjusted_rating)
def test_update_with_annotation(self):