mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
[4.2.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 097e3a70c1 from main
This commit is contained in:
committed by
Mariusz Felisiak
parent
8a7b22d4a6
commit
80aae83439
@@ -75,6 +75,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
|
||||
@@ -339,7 +340,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(
|
||||
@@ -908,7 +908,6 @@ class RelatedFieldWidgetWrapperTests(SimpleTestCase):
|
||||
|
||||
@override_settings(ROOT_URLCONF="admin_widgets.urls")
|
||||
class AdminWidgetSeleniumTestCase(AdminSeleniumTestCase):
|
||||
|
||||
available_apps = ["admin_widgets"] + AdminSeleniumTestCase.available_apps
|
||||
|
||||
def setUp(self):
|
||||
@@ -1108,7 +1107,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)
|
||||
|
||||
Reference in New Issue
Block a user