[Python-modules-commits] [python-social-auth] 119/131: Update docs

Wolfgang Borgert debacle at moszumanska.debian.org
Sat Dec 24 15:17:10 UTC 2016


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

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

commit 919b81b297ed1b00c0bd127affb7c47fb692a14d
Author: Matías Aguirre <matiasaguirre at gmail.com>
Date:   Sat Aug 6 05:41:27 2016 -0300

    Update docs
---
 docs/backends/twitter.rst             | 8 ++++----
 social/tests/backends/test_twitter.py | 3 ---
 2 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/docs/backends/twitter.rst b/docs/backends/twitter.rst
index 6fcedd8..64e885c 100644
--- a/docs/backends/twitter.rst
+++ b/docs/backends/twitter.rst
@@ -20,9 +20,9 @@ To enable Twitter these two keys are needed. Further documentation at
   Client type instead of the Browser. Almost any dummy value will work if
   you plan some test.
 
-- You can request user's Email address by setting (consult `Twitter verify credentials`_)::
-
-      SOCIAL_AUTH_TWITTER_INCLUDE_EMAIL = True
+- You can request user's Email address (consult `Twitter verify
+  credentials`_), the parameter is sent automatically, but the
+  applicaton needs to be whitelisted in order to get a valid value.
 
 Twitter usually fails with a 401 error when trying to call the request-token
 URL, this is usually caused by server datetime errors (check miscellaneous
@@ -31,4 +31,4 @@ the trick.
 
 .. _Twitter development resources: http://dev.twitter.com/pages/auth
 .. _Twitter App Creation: http://twitter.com/apps/new
-.. _Twitter verify credentials: https://dev.twitter.com/rest/reference/get/account/verify_credentials
\ No newline at end of file
+.. _Twitter verify credentials: https://dev.twitter.com/rest/reference/get/account/verify_credentials
diff --git a/social/tests/backends/test_twitter.py b/social/tests/backends/test_twitter.py
index d4eaef8..fc2af14 100644
--- a/social/tests/backends/test_twitter.py
+++ b/social/tests/backends/test_twitter.py
@@ -253,9 +253,6 @@ class TwitterOAuth1IncludeEmailTest(OAuth1Test):
     })
 
     def test_login(self):
-        self.strategy.set_settings({
-            'SOCIAL_AUTH_TWITTER_INCLUDE_EMAIL': True
-        })
         user = self.do_login()
         self.assertEquals(user.email, 'foo at bar.bas')
 

-- 
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