Skip to content

Commit c969b51

Browse files
committed
Update test_authentication.py
1 parent 7e8cf80 commit c969b51

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_authentication.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
from django.utils import unittest
1010
from django.utils.http import urlencode
1111

12-
from rest_framework import status, permissions
12+
from rest_framework import status
13+
from rest_framework.permissions import IsAuthenticated
14+
from rest_framework_oauth import permissions
1315
from rest_framework_oauth.authentication import OAuthAuthentication, OAuth2Authentication
1416
from rest_framework_oauth.compat import oauth2_provider, oauth2_provider_scope
1517
from rest_framework_oauth.compat import oauth, oauth_provider
@@ -21,7 +23,7 @@
2123

2224

2325
class MockView(APIView):
24-
permission_classes = (permissions.IsAuthenticated,)
26+
permission_classes = (IsAuthenticated,)
2527

2628
def get(self, request):
2729
return HttpResponse({'a': 1, 'b': 2, 'c': 3})

0 commit comments

Comments
 (0)