From a8fa3e5cd77416b9e4a5b28b216fb3e19609a37d Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Fri, 10 Dec 2021 09:13:09 +0000 Subject: Refs #33355 -- Added missing tests for database functions and expression on null values. --- tests/db_functions/math/test_log.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/db_functions/math/test_log.py') diff --git a/tests/db_functions/math/test_log.py b/tests/db_functions/math/test_log.py index 469bb7cd3a..293993800a 100644 --- a/tests/db_functions/math/test_log.py +++ b/tests/db_functions/math/test_log.py @@ -14,9 +14,11 @@ class LogTests(TestCase): obj = IntegerModel.objects.annotate( null_log_small=Log('small', 'normal'), null_log_normal=Log('normal', 'big'), + null_log_big=Log('big', 'normal'), ).first() self.assertIsNone(obj.null_log_small) self.assertIsNone(obj.null_log_normal) + self.assertIsNone(obj.null_log_big) def test_decimal(self): DecimalModel.objects.create(n1=Decimal('12.9'), n2=Decimal('3.6')) -- cgit v1.3