summaryrefslogtreecommitdiff
path: root/tests/model_forms
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2026-01-18 21:26:56 +0100
committerGitHub <noreply@github.com>2026-01-18 21:26:56 +0100
commit6cff02078799b7c683a0d39630d49ab4fe532e7c (patch)
tree9813fc94d952942117b23d61231b9e89a8cab1c2 /tests/model_forms
parent0d31ca98830542088299d2078402891d08cc3a65 (diff)
Applied Black's 2026 stable style.
https://github.com/psf/black/releases/tag/26.1.0
Diffstat (limited to 'tests/model_forms')
-rw-r--r--tests/model_forms/test_modelchoicefield.py3
-rw-r--r--tests/model_forms/tests.py10
2 files changed, 4 insertions, 9 deletions
diff --git a/tests/model_forms/test_modelchoicefield.py b/tests/model_forms/test_modelchoicefield.py
index 8765f1a6d0..7b086fb182 100644
--- a/tests/model_forms/test_modelchoicefield.py
+++ b/tests/model_forms/test_modelchoicefield.py
@@ -402,8 +402,7 @@ class ModelChoiceFieldTests(TestCase):
<div><label>
<input type="checkbox" name="name" value="%d" data-slug="third-test">Third
</label></div></div>
- """
- % (self.c1.pk, self.c2.pk, self.c3.pk),
+ """ % (self.c1.pk, self.c2.pk, self.c3.pk),
)
def test_choice_value_hash(self):
diff --git a/tests/model_forms/tests.py b/tests/model_forms/tests.py
index 7783b817d5..466674ef64 100644
--- a/tests/model_forms/tests.py
+++ b/tests/model_forms/tests.py
@@ -1653,8 +1653,7 @@ class ModelFormBasicTests(TestCase):
<option value="%d" selected>Entertainment</option>
<option value="%d" selected>It&#x27;s a test</option>
<option value="%d">Third test</option>
-</select></li>"""
- % (self.c1.pk, self.c2.pk, self.c3.pk),
+</select></li>""" % (self.c1.pk, self.c2.pk, self.c3.pk),
)
def test_basic_creation(self):
@@ -3119,8 +3118,7 @@ class OtherModelFormTests(TestCase):
<select multiple name="colors" id="id_colors" required>
<option value="%(blue_pk)s">Blue</option>
</select></p>
- """
- % {"blue_pk": color.pk},
+ """ % {"blue_pk": color.pk},
)
def test_callable_field_default(self):
@@ -3157,9 +3155,7 @@ class OtherModelFormTests(TestCase):
<option value="3" selected>Novel</option></select>
<input id="initial-id_category" name="initial-category" type="hidden"
value="3">
- """.format(
- today_str
- ),
+ """.format(today_str),
)
empty_data = {
"title": "",