summaryrefslogtreecommitdiff
path: root/tests/annotations
diff options
context:
space:
mode:
Diffstat (limited to 'tests/annotations')
-rw-r--r--tests/annotations/tests.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/annotations/tests.py b/tests/annotations/tests.py
index 62912ee99c..37ca569389 100644
--- a/tests/annotations/tests.py
+++ b/tests/annotations/tests.py
@@ -967,8 +967,7 @@ class AliasTests(TestCase):
def test_aggregate_alias(self):
msg = (
- "Cannot aggregate over the 'other_age' alias. Use annotate() to "
- "promote it."
+ "Cannot aggregate over the 'other_age' alias. Use annotate() to promote it."
)
with self.assertRaisesMessage(FieldError, msg):
Author.objects.alias(
@@ -992,10 +991,7 @@ class AliasTests(TestCase):
def test_values_alias(self):
qs = Book.objects.alias(rating_alias=F('rating') - 1)
- msg = (
- "Cannot select the 'rating_alias' alias. Use annotate() to "
- "promote it."
- )
+ msg = "Cannot select the 'rating_alias' alias. Use annotate() to promote it."
for operation in ['values', 'values_list']:
with self.subTest(operation=operation):
with self.assertRaisesMessage(FieldError, msg):