Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
st4lk committed Mar 11, 2019
1 parent 630022b commit 48f3ade
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion requirements_test.txt
@@ -1,4 +1,4 @@
pytest-django==3.4.4
pytest-django==3.4.8
httpretty==0.9.6
unittest2==1.0.1
mock==1.3.0
5 changes: 0 additions & 5 deletions rest_social_auth/serializers.py
Expand Up @@ -46,11 +46,6 @@ class UserTokenSerializer(TokenSerializer, UserSerializer):
class JWTSerializer(TokenSerializer):

def get_token(self, obj):
warnings.warn(
DeprecationWarning,
'Support of djangorestframework-jwt will be removed in 3.0.0 version. '
'Use rest_framework_simplejwt instead.'
)
try:
from rest_framework_jwt.settings import api_settings
except ImportError:
Expand Down
5 changes: 5 additions & 0 deletions rest_social_auth/views.py
Expand Up @@ -230,6 +230,11 @@ class SocialTokenUserAuthView(BaseSocialAuthView):

class JWTAuthMixin(object):
def get_authenticators(self):
warnings.warn(
'Support of djangorestframework-jwt will be removed in 3.0.0 version. '
'Use rest_framework_simplejwt instead.',
DeprecationWarning,
)
try:
from rest_framework_jwt.authentication import JSONWebTokenAuthentication
except ImportError:
Expand Down

0 comments on commit 48f3ade

Please sign in to comment.