From: Harmon Date: Wed, 19 May 2021 12:43:35 +0000 (-0500) Subject: Update consumer key and secret usage in auth tests X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5fd3bed281018a556cfd6305670317bf5acb2a16;p=tweepy.git Update consumer key and secret usage in auth tests --- diff --git a/tests/test_auth.py b/tests/test_auth.py index c1dfb00..5f875ef 100644 --- a/tests/test_auth.py +++ b/tests/test_auth.py @@ -8,7 +8,7 @@ from tweepy import API, OAuthHandler class TweepyAuthTests(unittest.TestCase): def testoauth(self): - auth = OAuthHandler(oauth_consumer_key, oauth_consumer_secret) + auth = OAuthHandler(consumer_key, consumer_secret) # test getting access token auth_url = auth.get_authorization_url() @@ -24,7 +24,7 @@ class TweepyAuthTests(unittest.TestCase): api.destroy_status(s.id) def testaccesstype(self): - auth = OAuthHandler(oauth_consumer_key, oauth_consumer_secret) + auth = OAuthHandler(consumer_key, consumer_secret) auth_url = auth.get_authorization_url(access_type='read') print('Please open: ' + auth_url) answer = input('Did Twitter only request read permissions? (y/n) ')