diff --git a/tests/auth_tests/test_management.py b/tests/auth_tests/test_management.py index 8eff655c99..5f772122f6 100644 --- a/tests/auth_tests/test_management.py +++ b/tests/auth_tests/test_management.py @@ -595,16 +595,16 @@ class CreatePermissionsTests(TestCase): content_type=permission_content_type, ).count(), 1) - def test_unvailable_models(self): + def test_unavailable_models(self): """ #24075 - Permissions shouldn't be created or deleted if the ContentType or Permission models aren't available. """ state = migrations.state.ProjectState() - # Unvailable contenttypes.ContentType + # Unavailable contenttypes.ContentType with self.assertNumQueries(0): create_permissions(self.app_config, verbosity=0, apps=state.apps) - # Unvailable auth.Permission + # Unavailable auth.Permission state = migrations.state.ProjectState(real_apps=['contenttypes']) with self.assertNumQueries(0): create_permissions(self.app_config, verbosity=0, apps=state.apps)