summaryrefslogtreecommitdiff
path: root/tests/admin_scripts
diff options
context:
space:
mode:
authorMounir Messelmeni <messelmeni.mounir@gmail.com>2016-02-12 11:02:36 +0100
committerTim Graham <timograham@gmail.com>2016-02-12 13:34:56 -0500
commit50931dfa5310d5ae1c6e2852d05bf1e86700827f (patch)
tree18350e95bf9dce60b35da528a898525b9155044e /tests/admin_scripts
parent004ba0f99eb25c3f32aa3a41707534e955d1878e (diff)
Fixed #25304 -- Allowed management commands to check if migrations are applied.
Diffstat (limited to 'tests/admin_scripts')
-rw-r--r--tests/admin_scripts/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/admin_scripts/tests.py b/tests/admin_scripts/tests.py
index 60c3a68fd2..8f2ba6cab1 100644
--- a/tests/admin_scripts/tests.py
+++ b/tests/admin_scripts/tests.py
@@ -1367,7 +1367,7 @@ class ManageRunserver(AdminScriptTestCase):
Ensure runserver.check_migrations doesn't choke on empty DATABASES.
"""
tested_connections = ConnectionHandler({})
- with mock.patch('django.core.management.commands.runserver.connections', new=tested_connections):
+ with mock.patch('django.core.management.base.connections', new=tested_connections):
self.cmd.check_migrations()
def test_readonly_database(self):