diff options
| author | davidchorpash <dchorpash@doctorondemand.com> | 2020-06-06 17:05:39 -0600 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-06-08 06:46:23 +0200 |
| commit | 07506a61147768b95e44ee68d0673851fa5e05bd (patch) | |
| tree | a7156088b8dbebb4f5d78758711ef5e3c020acb0 /tests/migrations/test_commands.py | |
| parent | 38a21f2d9ed4f556af934498ec6a242f6a20418a (diff) | |
Fixed #31661 -- Removed period in makemigrations history check warning.
Diffstat (limited to 'tests/migrations/test_commands.py')
| -rw-r--r-- | tests/migrations/test_commands.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/migrations/test_commands.py b/tests/migrations/test_commands.py index 50f3ea8965..f7b21931e4 100644 --- a/tests/migrations/test_commands.py +++ b/tests/migrations/test_commands.py @@ -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())) |
