diff options
| author | Tim Graham <timograham@gmail.com> | 2016-12-31 08:52:42 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-01-17 20:52:01 -0500 |
| commit | e0910dcc9283cd8f782cb97836c291f6f395f3f0 (patch) | |
| tree | 89310a2e660510adf218328cd8b7151ed0fb6c97 /tests | |
| parent | ff419de263138e905dff44c5cb806310c70f32aa (diff) | |
Refs #25604 -- Removed makemigrations --exit option per deprecation timeline.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/migrations/test_commands.py | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/tests/migrations/test_commands.py b/tests/migrations/test_commands.py index 6477873e0d..fd483b7f85 100644 --- a/tests/migrations/test_commands.py +++ b/tests/migrations/test_commands.py @@ -17,9 +17,8 @@ from django.db.migrations.exceptions import ( InconsistentMigrationHistory, MigrationSchemaMissing, ) from django.db.migrations.recorder import MigrationRecorder -from django.test import ignore_warnings, mock, override_settings +from django.test import mock, override_settings from django.utils import six -from django.utils.deprecation import RemovedInDjango20Warning from django.utils.encoding import force_text from .models import UnicodeModel, UnserializableModel @@ -1232,19 +1231,6 @@ class MakeMigrationsTests(MigrationTestBase): self.assertIn("dependencies=[\n('migrations','0001_%s'),\n]" % migration_name_0001, content) self.assertIn("operations=[\n]", content) - @ignore_warnings(category=RemovedInDjango20Warning) - def test_makemigrations_exit(self): - """ - makemigrations --exit should exit with sys.exit(1) when there are no - changes to an app. - """ - with self.temporary_migration_module(): - call_command("makemigrations", "--exit", "migrations", verbosity=0) - - with self.temporary_migration_module(module="migrations.test_migrations_no_changes"): - with self.assertRaises(SystemExit): - call_command("makemigrations", "--exit", "migrations", verbosity=0) - def test_makemigrations_check(self): """ makemigrations --check should exit with a non-zero status when |
