mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Refs #33355 -- Added missing tests for database functions and expression on null values.
This commit is contained in:
committed by
Mariusz Felisiak
parent
78f062f63e
commit
a8fa3e5cd7
@@ -14,9 +14,11 @@ class ATan2Tests(TestCase):
|
||||
obj = IntegerModel.objects.annotate(
|
||||
null_atan2_sn=ATan2('small', 'normal'),
|
||||
null_atan2_nb=ATan2('normal', 'big'),
|
||||
null_atan2_bn=ATan2('big', 'normal'),
|
||||
).first()
|
||||
self.assertIsNone(obj.null_atan2_sn)
|
||||
self.assertIsNone(obj.null_atan2_nb)
|
||||
self.assertIsNone(obj.null_atan2_bn)
|
||||
|
||||
def test_decimal(self):
|
||||
DecimalModel.objects.create(n1=Decimal('-9.9'), n2=Decimal('4.6'))
|
||||
|
||||
Reference in New Issue
Block a user