From bb87b269efa2e0ba019a0e67fa1a7489838b9684 Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 7 Jan 2022 02:23:43 -0600 Subject: [PATCH] Default user_auth parameter for Client.get_me to True --- tests/test_client.py | 2 +- tweepy/client.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_client.py b/tests/test_client.py index f44e8fb..36b35ba 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -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): diff --git a/tweepy/client.py b/tweepy/client.py index 47340e9..ed66848 100644 --- a/tweepy/client.py +++ b/tweepy/client.py @@ -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. -- 2.25.1