mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
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
This commit is contained in:
parent
8c660fb592
commit
097e3a70c1
238 changed files with 36 additions and 280 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue