mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-05 04:50:12 +03:00
setting default authentication classes in the FunctionBasedPermissionDeniedTests does not add anything
This commit is contained in:
parent
cfd9b58568
commit
4a7d4b84af
|
@ -113,13 +113,6 @@ class FunctionBasedViewIntegrationTests(TestCase):
|
|||
class FuncionBasedPermissionDeniedTests(TestCase):
|
||||
|
||||
|
||||
def setUp(self):
|
||||
self.authentication_classes = api_settings.DEFAULT_AUTHENTICATION_CLASSES
|
||||
api_settings.DEFAULT_AUTHENTICATION_CLASSES = 'rest_framework.permissions.IsAuthenticated'
|
||||
|
||||
def tearDown(self):
|
||||
api_settings.DEFAULT_AUTHENTICATION_CLASSES = self.authentication_classes
|
||||
|
||||
def test_permission_denied_instance_error(self):
|
||||
self.view = permissiondenied_instance_view
|
||||
request = factory.get('/', content_type='application/json')
|
||||
|
|
Loading…
Reference in New Issue
Block a user