diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-07-20 07:33:03 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-07-26 11:41:19 +0200 |
| commit | c773d5794eb425c4836c726bdf6e1e742c94e9c0 (patch) | |
| tree | 823959f2181eb55d010385ffc3fbcda34e102b21 /tests/check_framework | |
| parent | 7bdb682215de3bf7f8f38f8161b175c225ee25fa (diff) | |
Refs #27236 -- Reverted AlterIndexTogether deprecation.
This partly reverts a6385b382e05a614a99e5a5913d8e631823159a2.
Diffstat (limited to 'tests/check_framework')
6 files changed, 0 insertions, 42 deletions
diff --git a/tests/check_framework/migrations_test_apps/__init__.py b/tests/check_framework/migrations_test_apps/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 --- a/tests/check_framework/migrations_test_apps/__init__.py +++ /dev/null diff --git a/tests/check_framework/migrations_test_apps/index_together_app/__init__.py b/tests/check_framework/migrations_test_apps/index_together_app/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 --- a/tests/check_framework/migrations_test_apps/index_together_app/__init__.py +++ /dev/null diff --git a/tests/check_framework/migrations_test_apps/index_together_app/apps.py b/tests/check_framework/migrations_test_apps/index_together_app/apps.py deleted file mode 100644 index 3bb7170897..0000000000 --- a/tests/check_framework/migrations_test_apps/index_together_app/apps.py +++ /dev/null @@ -1,5 +0,0 @@ -from django.apps import AppConfig - - -class IndexTogetherAppConfig(AppConfig): - name = "check_framework.migrations_test_apps.index_together_app" diff --git a/tests/check_framework/migrations_test_apps/index_together_app/migrations/0001_initial.py b/tests/check_framework/migrations_test_apps/index_together_app/migrations/0001_initial.py deleted file mode 100644 index c642ee6c57..0000000000 --- a/tests/check_framework/migrations_test_apps/index_together_app/migrations/0001_initial.py +++ /dev/null @@ -1,16 +0,0 @@ -from django.db import migrations, models - - -class Migration(migrations.Migration): - - initial = True - - operations = [ - migrations.CreateModel( - "SimpleModel", - [ - ("field", models.IntegerField()), - ], - ), - migrations.AlterIndexTogether("SimpleModel", index_together=(("id", "field"),)), - ] diff --git a/tests/check_framework/migrations_test_apps/index_together_app/migrations/__init__.py b/tests/check_framework/migrations_test_apps/index_together_app/migrations/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 --- a/tests/check_framework/migrations_test_apps/index_together_app/migrations/__init__.py +++ /dev/null diff --git a/tests/check_framework/test_migrations.py b/tests/check_framework/test_migrations.py index e41a68fa54..0b00690e77 100644 --- a/tests/check_framework/test_migrations.py +++ b/tests/check_framework/test_migrations.py @@ -1,11 +1,7 @@ -from unittest.mock import ANY - from django.core import checks -from django.core.checks.migrations import check_migration_operations from django.db import migrations from django.db.migrations.operations.base import Operation from django.test import TestCase -from django.test.utils import override_settings class DeprecatedMigrationOperationTests(TestCase): @@ -54,23 +50,6 @@ class DeprecatedMigrationOperationTests(TestCase): ], ) - @override_settings( - INSTALLED_APPS=["check_framework.migrations_test_apps.index_together_app"] - ) - def tests_check_alter_index_together(self): - errors = check_migration_operations() - self.assertEqual( - errors, - [ - checks.Warning( - "AlterIndexTogether is deprecated. Support for it (except in " - "historical migrations) will be removed in Django 5.1.", - obj=ANY, - id="migrations.W001", - ) - ], - ) - class RemovedMigrationOperationTests(TestCase): def test_default_operation(self): |
