summaryrefslogtreecommitdiff
path: root/tests/admin_widgets
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:52:33 +0100
commite565a5cd187197a6349e55d7a4c68a9e12e2fd20 (patch)
tree7c4f7a507f80833bd17f59b7d5ca723bcdc349da /tests/admin_widgets
parent4cf73314c4704509a7587b3f24201cf179d64f79 (diff)
[4.0.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')
-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 c921b4abcd..998c591297 100644
--- a/tests/admin_widgets/tests.py
+++ b/tests/admin_widgets/tests.py
@@ -71,6 +71,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
@@ -304,7 +305,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(
@@ -865,7 +865,6 @@ class RelatedFieldWidgetWrapperTests(SimpleTestCase):
@override_settings(ROOT_URLCONF="admin_widgets.urls")
class AdminWidgetSeleniumTestCase(AdminSeleniumTestCase):
-
available_apps = ["admin_widgets"] + AdminSeleniumTestCase.available_apps
def setUp(self):
@@ -1054,7 +1053,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)