mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-22 09:06:40 +03:00
Merge pull request #191 from EnTeQuAk/bugfix/fix-social-login-test
Fix social-adatper tests for allauth>=0.25.0
This commit is contained in:
commit
5e4d85bca9
|
@ -60,7 +60,7 @@ class SocialLoginSerializer(serializers.Serializer):
|
|||
if not adapter_class:
|
||||
raise serializers.ValidationError(_('Define adapter_class in view'))
|
||||
|
||||
adapter = adapter_class()
|
||||
adapter = adapter_class(request)
|
||||
app = adapter.get_provider().get_app(request)
|
||||
|
||||
# More info on code vs access_token
|
||||
|
|
4
setup.py
4
setup.py
|
@ -33,11 +33,11 @@ setup(
|
|||
'six>=1.9.0',
|
||||
],
|
||||
extras_require={
|
||||
'with_social': ['django-allauth>=0.24.1'],
|
||||
'with_social': ['django-allauth>=0.25.0'],
|
||||
},
|
||||
tests_require=[
|
||||
'responses>=0.5.0',
|
||||
'django-allauth>=0.24.1',
|
||||
'django-allauth>=0.25.0',
|
||||
],
|
||||
test_suite='runtests.runtests',
|
||||
include_package_data=True,
|
||||
|
|
Loading…
Reference in New Issue
Block a user