diff options
| author | Mounir Messelmeni <messelmeni.mounir@gmail.com> | 2016-02-12 11:02:36 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-02-12 13:34:56 -0500 |
| commit | 50931dfa5310d5ae1c6e2852d05bf1e86700827f (patch) | |
| tree | 18350e95bf9dce60b35da528a898525b9155044e /tests/admin_scripts/tests.py | |
| parent | 004ba0f99eb25c3f32aa3a41707534e955d1878e (diff) | |
Fixed #25304 -- Allowed management commands to check if migrations are applied.
Diffstat (limited to 'tests/admin_scripts/tests.py')
| -rw-r--r-- | tests/admin_scripts/tests.py | 2 |
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): |
