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:04:38 +0100
commit097e3a70c1481ee7b042b2edd91b2be86fb7b5b6 (patch)
tree7042be9ee3aabda10ecfa8923a113388b81f34a8 /tests/admin_widgets
parent8c660fb59239828583f17cdede3b64f208b8752c (diff)
downloaddjango-097e3a70c1481ee7b042b2edd91b2be86fb7b5b6.tar.gz
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
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 4948a60ee0..2fadbf9d8c 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
@@ -335,7 +336,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(
@@ -904,7 +904,6 @@ class RelatedFieldWidgetWrapperTests(SimpleTestCase):
@override_settings(ROOT_URLCONF="admin_widgets.urls")
class AdminWidgetSeleniumTestCase(AdminSeleniumTestCase):
-
available_apps = ["admin_widgets"] + AdminSeleniumTestCase.available_apps
def setUp(self):
@@ -1104,7 +1103,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)