mirror of
https://github.com/django/django.git
synced 2025-11-02 21:03:53 +00:00
Fixed #25304 -- Allowed management commands to check if migrations are applied.
This commit is contained in:
parent
004ba0f99e
commit
50931dfa53
8 changed files with 76 additions and 39 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue