summaryrefslogtreecommitdiff
path: root/tests/annotations
diff options
context:
space:
mode:
authorLuke Plant <L.Plant.98@cantab.net>2022-03-30 10:56:13 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-03-30 11:03:48 +0200
commit04ad0f26ba4b8c79dc311e1789457e0c4d1b8832 (patch)
tree70b945d429808bc45c2b90fbc41e79b484dceaf4 /tests/annotations
parentfac662f4798f7e4e0ed9be6b4fb4a87a80810a68 (diff)
Refs #33397 -- Added extra tests for resolving an output_field of CombinedExpression.
Diffstat (limited to 'tests/annotations')
-rw-r--r--tests/annotations/tests.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/annotations/tests.py b/tests/annotations/tests.py
index b3b0e5d703..5106a377ac 100644
--- a/tests/annotations/tests.py
+++ b/tests/annotations/tests.py
@@ -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):