Upgraded to Python Social Auth 0.2.21 to resolve migration issue

This commit is contained in:
Clinton Blackburn
2017-02-06 19:52:52 -05:00
committed by Clinton Blackburn
parent 5cd3a86382
commit 4cc7628696
8 changed files with 8 additions and 68 deletions

View File

@@ -2,11 +2,10 @@
import json
import httpretty
from provider.constants import PUBLIC
from provider.oauth2.models import Client
from social.apps.django_app.default.models import UserSocialAuth
from social.backends.facebook import FacebookOAuth2
from student.tests.factories import UserFactory
from .testutil import ThirdPartyAuthTestMixin
@@ -81,7 +80,7 @@ class ThirdPartyOAuthTestMixin(ThirdPartyAuthTestMixin):
class ThirdPartyOAuthTestMixinFacebook(object):
"""Tests oauth with the Facebook backend"""
BACKEND = "facebook"
USER_URL = "https://graph.facebook.com/v2.3/me"
USER_URL = FacebookOAuth2.USER_DATA_URL
# In facebook responses, the "id" field is used as the user's identifier
UID_FIELD = "id"