summaryrefslogtreecommitdiff
path: root/tests/admin_widgets/tests.py
diff options
context:
space:
mode:
authorDavid Smith <smithdc@gmail.com>2023-02-01 07:13:39 +0000
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-02-01 11:44:13 +0100
commita637d0bd22665edfe7af40b4da3297462ec3c9cf (patch)
tree01203480b5e7bc6d0bd6a33cec60336cf2dd8ba9 /tests/admin_widgets/tests.py
parentc629c7891a756f2b870363ad3d3041e6b825b7d5 (diff)
[4.1.x] Refs #33476 -- Applied Black's 2023 stable style.
Black 23.1.0 is released which, as the first release of the year, introduces the 2023 stable style. This incorporates most of last year's preview style. https://github.com/psf/black/releases/tag/23.1.0 Backport of 097e3a70c1481ee7b042b2edd91b2be86fb7b5b6 from main.
Diffstat (limited to 'tests/admin_widgets/tests.py')
-rw-r--r--tests/admin_widgets/tests.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/admin_widgets/tests.py b/tests/admin_widgets/tests.py
index 55f513c0e9..43e2de9dc7 100644
--- a/tests/admin_widgets/tests.py
+++ b/tests/admin_widgets/tests.py
@@ -73,6 +73,7 @@ class AdminFormfieldForDBFieldTests(SimpleTestCase):
Helper to call formfield_for_dbfield for a given model and field name
and verify that the returned formfield is appropriate.
"""
+
# Override any settings on the model admin
class MyModelAdmin(admin.ModelAdmin):
pass
@@ -317,7 +318,6 @@ class AdminForeignKeyRawIdWidget(TestDataMixin, TestCase):
)
def test_invalid_target_id(self):
-
for test_str in ("Iñtërnâtiônàlizætiøn", "1234'", -1234):
# This should result in an error message, not a server exception.
response = self.client.post(
@@ -886,7 +886,6 @@ class RelatedFieldWidgetWrapperTests(SimpleTestCase):
@override_settings(ROOT_URLCONF="admin_widgets.urls")
class AdminWidgetSeleniumTestCase(AdminSeleniumTestCase):
-
available_apps = ["admin_widgets"] + AdminSeleniumTestCase.available_apps
def setUp(self):
@@ -1086,7 +1085,6 @@ class DateTimePickerSeleniumTests(AdminWidgetSeleniumTestCase):
# Test with every locale
with override_settings(LANGUAGE_CODE=language_code):
-
# Open a page that has a date picker widget
url = reverse("admin:admin_widgets_member_change", args=(member.pk,))
self.selenium.get(self.live_server_url + url)