From 50931dfa5310d5ae1c6e2852d05bf1e86700827f Mon Sep 17 00:00:00 2001 From: Mounir Messelmeni Date: Fri, 12 Feb 2016 11:02:36 +0100 Subject: Fixed #25304 -- Allowed management commands to check if migrations are applied. --- tests/admin_scripts/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/admin_scripts') 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): -- cgit v1.3