summaryrefslogtreecommitdiff
path: root/tests/db_utils
diff options
context:
space:
mode:
authorFlorian Apolloner <florian@apolloner.eu>2022-03-17 07:31:47 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-03-17 07:36:34 +0100
commit13378ad95206a96c3d1d261eb738032468a7acc1 (patch)
tree0035e883cdc1b6d6059bd9c67f00b3b8dde76676 /tests/db_utils
parent58ad9a99a744b036fa69c4d03eca5618ea949f93 (diff)
downloaddjango-13378ad95206a96c3d1d261eb738032468a7acc1.tar.gz
Moved ensure_defaults() and prepare_test_settings() logic to ConnectionHandler.configure_settings().
Diffstat (limited to 'tests/db_utils')
-rw-r--r--tests/db_utils/tests.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/db_utils/tests.py b/tests/db_utils/tests.py
index 99b58d0b8a..fe1d1e2d60 100644
--- a/tests/db_utils/tests.py
+++ b/tests/db_utils/tests.py
@@ -50,26 +50,6 @@ class ConnectionHandlerTests(SimpleTestCase):
with self.assertRaisesMessage(ConnectionDoesNotExist, msg):
conns["nonexistent"]
- def test_ensure_defaults_nonexistent_alias(self):
- msg = "The connection 'nonexistent' doesn't exist."
- conns = ConnectionHandler(
- {
- DEFAULT_DB_ALIAS: {"ENGINE": "django.db.backends.dummy"},
- }
- )
- with self.assertRaisesMessage(ConnectionDoesNotExist, msg):
- conns.ensure_defaults("nonexistent")
-
- def test_prepare_test_settings_nonexistent_alias(self):
- msg = "The connection 'nonexistent' doesn't exist."
- conns = ConnectionHandler(
- {
- DEFAULT_DB_ALIAS: {"ENGINE": "django.db.backends.dummy"},
- }
- )
- with self.assertRaisesMessage(ConnectionDoesNotExist, msg):
- conns.prepare_test_settings("nonexistent")
-
class DatabaseErrorWrapperTests(TestCase):
@unittest.skipUnless(connection.vendor == "postgresql", "PostgreSQL test")