diff options
Diffstat (limited to 'django/contrib/auth/tests/test_management.py')
| -rw-r--r-- | django/contrib/auth/tests/test_management.py | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/django/contrib/auth/tests/test_management.py b/django/contrib/auth/tests/test_management.py index 48c98a1e13..7fd41b9e8b 100644 --- a/django/contrib/auth/tests/test_management.py +++ b/django/contrib/auth/tests/test_management.py @@ -17,7 +17,7 @@ from django.core import checks from django.core import exceptions from django.core.management import call_command from django.core.management.base import CommandError -from django.test import TestCase, override_settings, override_system_checks, skipUnlessDBFeature +from django.test import TestCase, override_settings, override_system_checks from django.utils import six from django.utils.encoding import force_str @@ -506,21 +506,3 @@ class PermissionTestCase(TestCase): six.assertRaisesRegex(self, exceptions.ValidationError, "The verbose_name of permission is longer than 39 characters", create_permissions, auth_app_config, verbosity=0) - - -class MigrateTests(TestCase): - - @skipUnlessDBFeature('can_rollback_ddl') - def test_unmigrating_first_migration_post_migrate_signal(self): - """ - #24075 - When unmigrating an app before its first migration, - post_migrate signal handler must be aware of the missing tables. - """ - try: - with override_settings( - INSTALLED_APPS=["django.contrib.auth", "django.contrib.contenttypes"], - MIGRATION_MODULES={'auth': 'django.contrib.auth.migrations'}, - ): - call_command("migrate", "auth", "zero", stdout=six.StringIO()) - finally: - call_command("migrate", stdout=six.StringIO()) |
