diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2026-01-18 21:26:56 +0100 |
|---|---|---|
| committer | Jacob Walls <jacobtylerwalls@gmail.com> | 2026-03-30 15:55:07 -0400 |
| commit | 0ee44c674cf61efbca2056c40f3e4f2335aaeee6 (patch) | |
| tree | a27edf3c3c9ee9c50ba78df9e158b28be408a8bb /tests/model_forms | |
| parent | 89b4d944f7e331e267aa1030e295f29355b78172 (diff) | |
[5.2.x] Applied Black's 2026 stable style.
https://github.com/psf/black/releases/tag/26.1.0
Backport of 6cff02078799b7c683a0d39630d49ab4fe532e7c from main.
Diffstat (limited to 'tests/model_forms')
| -rw-r--r-- | tests/model_forms/test_modelchoicefield.py | 3 | ||||
| -rw-r--r-- | tests/model_forms/tests.py | 10 |
2 files changed, 4 insertions, 9 deletions
diff --git a/tests/model_forms/test_modelchoicefield.py b/tests/model_forms/test_modelchoicefield.py index 83d801768a..81d24646e4 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 fd043d3d03..0af109a2d4 100644 --- a/tests/model_forms/tests.py +++ b/tests/model_forms/tests.py @@ -1655,8 +1655,7 @@ class ModelFormBasicTests(TestCase): <option value="%d" selected>Entertainment</option> <option value="%d" selected>It'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): @@ -3147,8 +3146,7 @@ class OtherModelFormTests(TestCase): <select multiple name="colours" id="id_colours" required> <option value="%(blue_pk)s">Blue</option> </select></p> - """ - % {"blue_pk": colour.pk}, + """ % {"blue_pk": colour.pk}, ) def test_callable_field_default(self): @@ -3185,9 +3183,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": "", |
