[Python-modules-commits] [python-social-auth] 240/322: Fix Facebook test case after API version change. Refs #480

Wolfgang Borgert debacle at moszumanska.debian.org
Sat Dec 24 15:13:14 UTC 2016


This is an automated email from the git hooks/post-receive script.

debacle pushed a commit to tag v0.2.10
in repository python-social-auth.

commit 19dafb5893ba12be6dd9002cbe19f6933575dad4
Author: Matías Aguirre <matiasaguirre at gmail.com>
Date:   Tue Apr 7 22:59:10 2015 -0300

    Fix Facebook test case after API version change. Refs #480
---
 social/tests/backends/test_facebook.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/social/tests/backends/test_facebook.py b/social/tests/backends/test_facebook.py
index 6fe7aa6..fc1aa5f 100644
--- a/social/tests/backends/test_facebook.py
+++ b/social/tests/backends/test_facebook.py
@@ -1,6 +1,5 @@
 import json
 
-from social.p3 import urlencode
 from social.exceptions import AuthUnknownError
 
 from social.tests.backends.oauth import OAuth2Test
@@ -8,9 +7,9 @@ from social.tests.backends.oauth import OAuth2Test
 
 class FacebookOAuth2Test(OAuth2Test):
     backend_path = 'social.backends.facebook.FacebookOAuth2'
-    user_data_url = 'https://graph.facebook.com/me'
+    user_data_url = 'https://graph.facebook.com/v2.3/me'
     expected_username = 'foobar'
-    access_token_body = urlencode({
+    access_token_body = json.dumps({
         'access_token': 'foobar',
         'token_type': 'bearer'
     })

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-social-auth.git



More information about the Python-modules-commits mailing list