From 4a7d4b84afc89f72958c02e44dc42c56d03dd31e Mon Sep 17 00:00:00 2001 From: Jens Timmerman Date: Tue, 2 Feb 2016 18:03:45 +0100 Subject: [PATCH] setting default authentication classes in the FunctionBasedPermissionDeniedTests does not add anything --- tests/test_views.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/tests/test_views.py b/tests/test_views.py index 628d75727..b44c38c45 100644 --- a/tests/test_views.py +++ b/tests/test_views.py @@ -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')