summaryrefslogtreecommitdiff
path: root/tests/get_or_create
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/get_or_create
parent9c19aff7c7561e3a82978a272ecdaad40dda5c00 (diff)
Refs #33476 -- Refactored code to strictly match 88 characters line length.
Diffstat (limited to 'tests/get_or_create')
-rw-r--r--tests/get_or_create/tests.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/get_or_create/tests.py b/tests/get_or_create/tests.py
index a774e50bba..a2821187b2 100644
--- a/tests/get_or_create/tests.py
+++ b/tests/get_or_create/tests.py
@@ -678,7 +678,10 @@ class InvalidCreateArgumentsTests(TransactionTestCase):
)
def test_property_attribute_without_setter_kwargs(self):
- msg = "Cannot resolve keyword 'name_in_all_caps' into field. Choices are: id, name, tags"
+ msg = (
+ "Cannot resolve keyword 'name_in_all_caps' into field. Choices are: id, "
+ "name, tags"
+ )
with self.assertRaisesMessage(FieldError, msg):
Thing.objects.update_or_create(
name_in_all_caps="FRANK", defaults={"name": "Frank"}