mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #25304 -- Allowed management commands to check if migrations are applied.
This commit is contained in:
committed by
Tim Graham
parent
004ba0f99e
commit
50931dfa53
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user