mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Fixed typo in auth management test.
This commit is contained in:
		| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user