summaryrefslogtreecommitdiff
path: root/tests/servers
diff options
context:
space:
mode:
authorDavid Smith <smithdc@gmail.com>2023-02-01 07:13:39 +0000
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-02-01 11:04:38 +0100
commit097e3a70c1481ee7b042b2edd91b2be86fb7b5b6 (patch)
tree7042be9ee3aabda10ecfa8923a113388b81f34a8 /tests/servers
parent8c660fb59239828583f17cdede3b64f208b8752c (diff)
downloaddjango-097e3a70c1481ee7b042b2edd91b2be86fb7b5b6.tar.gz
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
Diffstat (limited to 'tests/servers')
-rw-r--r--tests/servers/test_liveserverthread.py1
-rw-r--r--tests/servers/tests.py3
2 files changed, 0 insertions, 4 deletions
diff --git a/tests/servers/test_liveserverthread.py b/tests/servers/test_liveserverthread.py
index 09b6ca08c8..8ed70f3202 100644
--- a/tests/servers/test_liveserverthread.py
+++ b/tests/servers/test_liveserverthread.py
@@ -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):
diff --git a/tests/servers/tests.py b/tests/servers/tests.py
index 8796db9749..4dece98ce9 100644
--- a/tests/servers/tests.py
+++ b/tests/servers/tests.py
@@ -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