summaryrefslogtreecommitdiff
path: root/tests/expressions
diff options
context:
space:
mode:
authorAdam Johnson <me@adamj.eu>2021-02-25 09:52:59 +0000
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-10-21 09:40:52 +0200
commit45f48ed4f7dda33c536ae14a72c26dc5574c8312 (patch)
tree8640dc1dc8152528c08a25932e8d70cca7bf130f /tests/expressions
parent8806e8809e023017e6958b9fa0bbd960938e0a91 (diff)
downloaddjango-45f48ed4f7dda33c536ae14a72c26dc5574c8312.tar.gz
Made F deconstruction omit 'expressions' in the path.
Diffstat (limited to 'tests/expressions')
-rw-r--r--tests/expressions/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/expressions/tests.py b/tests/expressions/tests.py
index 33c5189390..30a3f0ad61 100644
--- a/tests/expressions/tests.py
+++ b/tests/expressions/tests.py
@@ -991,7 +991,7 @@ class FTests(SimpleTestCase):
def test_deconstruct(self):
f = F('name')
path, args, kwargs = f.deconstruct()
- self.assertEqual(path, 'django.db.models.expressions.F')
+ self.assertEqual(path, 'django.db.models.F')
self.assertEqual(args, (f.name,))
self.assertEqual(kwargs, {})