diff options
author | David Wobrock <david.wobrock@gmail.com> | 2022-09-26 22:59:25 +0200 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-10-31 09:55:51 +0100 |
commit | a320aab5129f4019b3c1d28b7a3b509582bc56f9 (patch) | |
tree | 31d140537fbf59616871a04eeb4d19fde54761f9 /tests/queries | |
parent | c01e76c95caa1bd2995f1b6c186cbe8726c92ef9 (diff) | |
download | django-a320aab5129f4019b3c1d28b7a3b509582bc56f9.tar.gz |
Fixed #16211 -- Added logical NOT support to F expressions.
Diffstat (limited to 'tests/queries')
-rw-r--r-- | tests/queries/test_q.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/queries/test_q.py b/tests/queries/test_q.py index 923846b5a3..cdf40292b0 100644 --- a/tests/queries/test_q.py +++ b/tests/queries/test_q.py @@ -8,7 +8,7 @@ from django.db.models import ( Q, Value, ) -from django.db.models.expressions import RawSQL +from django.db.models.expressions import NegatedExpression, RawSQL from django.db.models.functions import Lower from django.db.models.sql.where import NothingNode from django.test import SimpleTestCase, TestCase @@ -87,7 +87,7 @@ class QTests(SimpleTestCase): ] for q in tests: with self.subTest(q=q): - self.assertIs(q.negated, True) + self.assertIsInstance(q, NegatedExpression) def test_deconstruct(self): q = Q(price__gt=F("discounted_price")) |