diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-01-13 21:28:09 +0100 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-01-14 17:50:04 +0100 |
commit | d992f4e3c29a81c956d3d616f0bc19701431b26e (patch) | |
tree | 3eebb321ef640126a8a1ad6c9f6273a73dc57463 /tests/annotations | |
parent | 06eec3197009b88e3a633128bbcbd76eea0b46ff (diff) | |
download | django-d992f4e3c29a81c956d3d616f0bc19701431b26e.tar.gz |
Refs #31369 -- Removed models.NullBooleanField per deprecation timeline.
Diffstat (limited to 'tests/annotations')
-rw-r--r-- | tests/annotations/tests.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/annotations/tests.py b/tests/annotations/tests.py index 8337f344ed..2aa1765125 100644 --- a/tests/annotations/tests.py +++ b/tests/annotations/tests.py @@ -4,8 +4,8 @@ from decimal import Decimal from django.core.exceptions import FieldDoesNotExist, FieldError from django.db.models import ( BooleanField, Case, CharField, Count, DateTimeField, DecimalField, Exists, - ExpressionWrapper, F, FloatField, Func, IntegerField, Max, - NullBooleanField, OuterRef, Q, Subquery, Sum, Value, When, + ExpressionWrapper, F, FloatField, Func, IntegerField, Max, OuterRef, Q, + Subquery, Sum, Value, When, ) from django.db.models.expressions import RawSQL from django.db.models.functions import ( @@ -641,14 +641,12 @@ class NonAggregateAnnotationTestCase(TestCase): is_book=Value(True, output_field=BooleanField()), is_pony=Value(False, output_field=BooleanField()), is_none=Value(None, output_field=BooleanField(null=True)), - is_none_old=Value(None, output_field=NullBooleanField()), ) self.assertGreater(len(books), 0) for book in books: self.assertIs(book.is_book, True) self.assertIs(book.is_pony, False) self.assertIsNone(book.is_none) - self.assertIsNone(book.is_none_old) def test_annotation_in_f_grouped_by_annotation(self): qs = ( |