1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +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:
David Smith
2023-02-01 07:13:39 +00:00
committed by Mariusz Felisiak
parent 8c660fb592
commit 097e3a70c1
238 changed files with 36 additions and 280 deletions

View File

@@ -51,7 +51,6 @@ class StackedMixinsView2(
class AccessMixinTests(TestCase):
factory = RequestFactory()
def test_stacked_mixins_success(self):
@@ -134,7 +133,6 @@ class AccessMixinTests(TestCase):
class UserPassesTestTests(SimpleTestCase):
factory = RequestFactory()
def _test_redirect(self, view=None, url="/accounts/login/?next=/rand"):
@@ -213,7 +211,6 @@ class UserPassesTestTests(SimpleTestCase):
class LoginRequiredMixinTests(TestCase):
factory = RequestFactory()
@classmethod
@@ -243,7 +240,6 @@ class LoginRequiredMixinTests(TestCase):
class PermissionsRequiredMixinTests(TestCase):
factory = RequestFactory()
@classmethod

View File

@@ -11,7 +11,6 @@ from django.test import Client, TestCase, modify_settings, override_settings
@override_settings(ROOT_URLCONF="auth_tests.urls")
class RemoteUserTest(TestCase):
middleware = "django.contrib.auth.middleware.RemoteUserMiddleware"
backend = "django.contrib.auth.backends.RemoteUserBackend"
header = "REMOTE_USER"