mirror of
https://github.com/django/django.git
synced 2025-08-30 15:27:40 +00:00
Fixed #31661 -- Removed period in makemigrations history check warning.
This commit is contained in:
parent
38a21f2d9e
commit
07506a6114
2 changed files with 3 additions and 2 deletions
|
@ -1566,8 +1566,9 @@ class MakeMigrationsTests(MigrationTestBase):
|
|||
side_effect=OperationalError('could not connect to server'),
|
||||
):
|
||||
with self.temporary_migration_module():
|
||||
with self.assertWarnsMessage(RuntimeWarning, msg):
|
||||
with self.assertWarns(RuntimeWarning) as cm:
|
||||
call_command('makemigrations', verbosity=0)
|
||||
self.assertEqual(str(cm.warning), msg)
|
||||
|
||||
@mock.patch('builtins.input', return_value='1')
|
||||
@mock.patch('django.db.migrations.questioner.sys.stdin', mock.MagicMock(encoding=sys.getdefaultencoding()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue