mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #28478 -- Deprecated TestCase's allow_database_queries and multi_db in favor of databases.
This commit is contained in:
committed by
Tim Graham
parent
647be06538
commit
8c775391b7
@@ -213,7 +213,7 @@ class ChangepasswordManagementCommandTestCase(TestCase):
|
||||
|
||||
|
||||
class MultiDBChangepasswordManagementCommandTestCase(TestCase):
|
||||
multi_db = True
|
||||
databases = {'default', 'other'}
|
||||
|
||||
@mock.patch.object(changepassword.Command, '_get_pass', return_value='not qwerty')
|
||||
def test_that_changepassword_command_with_database_option_uses_given_db(self, mock_get_pass):
|
||||
@@ -906,7 +906,7 @@ class CreatesuperuserManagementCommandTestCase(TestCase):
|
||||
|
||||
|
||||
class MultiDBCreatesuperuserTestCase(TestCase):
|
||||
multi_db = True
|
||||
databases = {'default', 'other'}
|
||||
|
||||
def test_createsuperuser_command_with_database_option(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user