summaryrefslogtreecommitdiff
path: root/tests/expressions
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2022-02-04 08:08:27 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-02-07 20:37:05 +0100
commit7119f40c9881666b6f9b5cf7df09ee1d21cc8344 (patch)
treefa50869f5614295f462d9bf77fec59365c621609 /tests/expressions
parent9c19aff7c7561e3a82978a272ecdaad40dda5c00 (diff)
downloaddjango-7119f40c9881666b6f9b5cf7df09ee1d21cc8344.tar.gz
Refs #33476 -- Refactored code to strictly match 88 characters line length.
Diffstat (limited to 'tests/expressions')
-rw-r--r--tests/expressions/tests.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/expressions/tests.py b/tests/expressions/tests.py
index d800462129..c7488d7e25 100644
--- a/tests/expressions/tests.py
+++ b/tests/expressions/tests.py
@@ -319,7 +319,10 @@ class BasicExpressionsTests(TestCase):
def test_object_create_with_aggregate(self):
# Aggregates are not allowed when inserting new data
- msg = "Aggregate functions are not allowed in this query (num_employees=Max(Value(1)))."
+ msg = (
+ "Aggregate functions are not allowed in this query "
+ "(num_employees=Max(Value(1)))."
+ )
with self.assertRaisesMessage(FieldError, msg):
Company.objects.create(
name="Company",
@@ -1059,9 +1062,10 @@ class IterableLookupInnerExpressionsTests(TestCase):
@unittest.skipUnless(
connection.vendor == "sqlite",
- "This defensive test only works on databases that don't validate parameter types",
+ "This defensive test only works on databases that don't validate parameter "
+ "types",
)
- def test_complex_expressions_do_not_introduce_sql_injection_via_untrusted_string_inclusion(
+ def test_expressions_not_introduce_sql_injection_via_untrusted_string_inclusion(
self,
):
"""