Default user_auth parameter for Client.get_me to True
authorHarmon <Harmon758@gmail.com>
Fri, 7 Jan 2022 08:23:43 +0000 (02:23 -0600)
committerHarmon <Harmon758@gmail.com>
Fri, 7 Jan 2022 08:23:43 +0000 (02:23 -0600)
tests/test_client.py
tweepy/client.py

index f44e8fb91e76fcdf9705a5bf59b1a2a5e5c43c2d..36b35bac12d366356caf9be63fd0324546c22086 100644 (file)
@@ -133,7 +133,7 @@ class TweepyTestCase(unittest.TestCase):
 
     @tape.use_cassette("test_get_me.yaml", serializer="yaml")
     def test_get_me(self):
-        self.client.get_me(user_auth=True)
+        self.client.get_me()
 
     @tape.use_cassette("test_search_spaces.yaml", serializer="yaml")
     def test_search_spaces(self):
index 47340e9b27887d3899170ffc0d3d9f1887b4d592..ed66848a77c80a38fba5f0d7f15c2c668d034a18 100644 (file)
@@ -1726,7 +1726,7 @@ class Client:
             ), data_type=User, user_auth=user_auth
         )
 
-    def get_me(self, *, user_auth=False, **params):
+    def get_me(self, *, user_auth=True, **params):
         """get_me(*, expansions, tweet_fields, user_fields)
 
         Returns information about an authorized user.