summaryrefslogtreecommitdiff
path: root/tests/test_runner
diff options
context:
space:
mode:
authorChris Jerdonek <chris.jerdonek@gmail.com>2016-09-08 13:33:36 -0700
committerTim Graham <timograham@gmail.com>2016-09-08 16:33:36 -0400
commit7ca3b391b611eb710c4c1d613e2f672591097a00 (patch)
tree92dad21e80ae5d20fd35645395dac95d4bc37041 /tests/test_runner
parent0bbab97c289ebcfd5676d4c84686c5549e650f8d (diff)
Fixed #27170 -- Added DatabaseWrapper class attributes to ease subclassing.
Diffstat (limited to 'tests/test_runner')
-rw-r--r--tests/test_runner/tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_runner/tests.py b/tests/test_runner/tests.py
index c2ad07013c..15417db645 100644
--- a/tests/test_runner/tests.py
+++ b/tests/test_runner/tests.py
@@ -281,7 +281,7 @@ class SetupDatabasesTests(unittest.TestCase):
}
})
- with mock.patch('django.db.backends.dummy.base.DatabaseCreation') as mocked_db_creation:
+ with mock.patch('django.db.backends.dummy.base.DatabaseWrapper.creation_class') as mocked_db_creation:
with mock.patch('django.test.utils.connections', new=tested_connections):
old_config = self.runner_instance.setup_databases()
self.runner_instance.teardown_databases(old_config)
@@ -306,7 +306,7 @@ class SetupDatabasesTests(unittest.TestCase):
'ENGINE': 'django.db.backends.dummy',
},
})
- with mock.patch('django.db.backends.dummy.base.DatabaseCreation') as mocked_db_creation:
+ with mock.patch('django.db.backends.dummy.base.DatabaseWrapper.creation_class') as mocked_db_creation:
with mock.patch('django.test.utils.connections', new=tested_connections):
self.runner_instance.setup_databases()
mocked_db_creation.return_value.create_test_db.assert_called_once_with(
@@ -320,7 +320,7 @@ class SetupDatabasesTests(unittest.TestCase):
'TEST': {'SERIALIZE': False},
},
})
- with mock.patch('django.db.backends.dummy.base.DatabaseCreation') as mocked_db_creation:
+ with mock.patch('django.db.backends.dummy.base.DatabaseWrapper.creation_class') as mocked_db_creation:
with mock.patch('django.test.utils.connections', new=tested_connections):
self.runner_instance.setup_databases()
mocked_db_creation.return_value.create_test_db.assert_called_once_with(