Update consumer key and secret usage in auth tests
authorHarmon <Harmon758@gmail.com>
Wed, 19 May 2021 12:43:35 +0000 (07:43 -0500)
committerHarmon <Harmon758@gmail.com>
Wed, 19 May 2021 12:43:35 +0000 (07:43 -0500)
tests/test_auth.py

index c1dfb0006f7f15043277a7cc662ed499bfa323a1..5f875efb971b142ef5c71d630ffbdbe401c46fd5 100644 (file)
@@ -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) ')