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:
committed by
Mariusz Felisiak
parent
8c660fb592
commit
097e3a70c1
@@ -7,7 +7,6 @@ from django.test.testcases import LiveServerThread
|
||||
# otherwise closing the connection would implicitly rollback and not set the
|
||||
# connection to None.
|
||||
class LiveServerThreadTest(TransactionTestCase):
|
||||
|
||||
available_apps = []
|
||||
|
||||
def run_live_server_thread(self, connections_override=None):
|
||||
|
||||
@@ -30,7 +30,6 @@ TEST_SETTINGS = {
|
||||
|
||||
@override_settings(ROOT_URLCONF="servers.urls", **TEST_SETTINGS)
|
||||
class LiveServerBase(LiveServerTestCase):
|
||||
|
||||
available_apps = [
|
||||
"servers",
|
||||
"django.contrib.auth",
|
||||
@@ -56,7 +55,6 @@ class CloseConnectionTestServer(ThreadedWSGIServer):
|
||||
|
||||
|
||||
class CloseConnectionTestLiveServerThread(LiveServerThread):
|
||||
|
||||
server_class = CloseConnectionTestServer
|
||||
|
||||
def _create_server(self, connections_override=None):
|
||||
@@ -64,7 +62,6 @@ class CloseConnectionTestLiveServerThread(LiveServerThread):
|
||||
|
||||
|
||||
class LiveServerTestCloseConnectionTest(LiveServerBase):
|
||||
|
||||
server_thread_class = CloseConnectionTestLiveServerThread
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user