Fixed typo in auth management test.
This commit is contained in:
parent
5d978c4621
commit
488b3d2b38
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue