diff options
| author | Adam Johnson <me@adamj.eu> | 2021-12-10 09:13:09 +0000 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-12-22 11:46:18 +0100 |
| commit | a8fa3e5cd77416b9e4a5b28b216fb3e19609a37d (patch) | |
| tree | a6cb44a12f0bbf7bc4796c82f8ae42791363ec36 /tests/db_functions/math/test_power.py | |
| parent | 78f062f63e7dea09c219fd1310d43950817f4c78 (diff) | |
Refs #33355 -- Added missing tests for database functions and expression on null values.
Diffstat (limited to 'tests/db_functions/math/test_power.py')
| -rw-r--r-- | tests/db_functions/math/test_power.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/db_functions/math/test_power.py b/tests/db_functions/math/test_power.py index a2d6156e3d..94929d38b7 100644 --- a/tests/db_functions/math/test_power.py +++ b/tests/db_functions/math/test_power.py @@ -13,9 +13,11 @@ class PowerTests(TestCase): obj = IntegerModel.objects.annotate( null_power_small=Power('small', 'normal'), null_power_normal=Power('normal', 'big'), + null_power_big=Power('big', 'normal'), ).first() self.assertIsNone(obj.null_power_small) self.assertIsNone(obj.null_power_normal) + self.assertIsNone(obj.null_power_big) def test_decimal(self): DecimalModel.objects.create(n1=Decimal('1.0'), n2=Decimal('-0.6')) |
