1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06: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:
David Smith
2023-02-01 07:13:39 +00:00
committed by Mariusz Felisiak
parent 8a7b22d4a6
commit 80aae83439
240 changed files with 37 additions and 281 deletions

View File

@@ -390,7 +390,6 @@ class SessionTestsMixin:
class DatabaseSessionTests(SessionTestsMixin, TestCase):
backend = DatabaseSession
session_engine = "django.contrib.sessions.backends.db"
@@ -501,7 +500,6 @@ class CustomDatabaseSessionTests(DatabaseSessionTests):
class CacheDBSessionTests(SessionTestsMixin, TestCase):
backend = CacheDBSession
def test_exists_searches_cache_first(self):
@@ -528,7 +526,6 @@ class CacheDBSessionWithTimeZoneTests(CacheDBSessionTests):
class FileSessionTests(SessionTestsMixin, SimpleTestCase):
backend = FileSession
def setUp(self):
@@ -624,7 +621,6 @@ class FileSessionPathLibTests(FileSessionTests):
class CacheSessionTests(SessionTestsMixin, SimpleTestCase):
backend = CacheSession
# Some backends might issue a warning
@@ -880,7 +876,6 @@ class SessionMiddlewareTests(TestCase):
class CookieSessionTests(SessionTestsMixin, SimpleTestCase):
backend = CookieSession
def test_save(self):