From 737bd0b725e5d33009e63eb040b5cb369214d7f0 Mon Sep 17 00:00:00 2001 From: Harmon Date: Wed, 9 Jun 2021 00:48:03 -0500 Subject: [PATCH] Rename API.retweets_of_me to API.get_retweets_of_me --- .../{testretweetsofme.json => testgetretweetsofme.json} | 0 docs/api.rst | 4 ++-- tests/test_api.py | 6 +++--- tweepy/api.py | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) rename cassettes/{testretweetsofme.json => testgetretweetsofme.json} (100%) diff --git a/cassettes/testretweetsofme.json b/cassettes/testgetretweetsofme.json similarity index 100% rename from cassettes/testretweetsofme.json rename to cassettes/testgetretweetsofme.json diff --git a/docs/api.rst b/docs/api.rst index d925d4c..d620b29 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -44,7 +44,7 @@ +------------------------------------------+--------------------------------------+ | `GET statuses/retweets/:id`_ | :meth:`API.get_retweets` | +------------------------------------------+--------------------------------------+ - | `GET statuses/retweets_of_me`_ | :meth:`API.retweets_of_me` | + | `GET statuses/retweets_of_me`_ | :meth:`API.get_retweets_of_me` | +------------------------------------------+--------------------------------------+ | `GET statuses/show/:id`_ | :meth:`API.get_status` | +------------------------------------------+--------------------------------------+ @@ -400,7 +400,7 @@ Post, retrieve, and engage with Tweets .. automethod:: API.get_retweets -.. automethod:: API.retweets_of_me +.. automethod:: API.get_retweets_of_me .. automethod:: API.get_status diff --git a/tests/test_api.py b/tests/test_api.py index 6ef1b8f..5278a1e 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -54,9 +54,9 @@ class TweepyAPITests(TweepyTestCase): def testmentionstimeline(self): self.api.mentions_timeline() - @tape.use_cassette('testretweetsofme.json') - def testretweetsofme(self): - self.api.retweets_of_me() + @tape.use_cassette('testgetretweetsofme.json') + def testgetretweetsofme(self): + self.api.get_retweets_of_me() @tape.use_cassette('testretweetandunretweet.json') def testretweetandunretweet(self): diff --git a/tweepy/api.py b/tweepy/api.py index d1476f0..1e4e4a3 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -808,9 +808,9 @@ class API: @pagination(mode='id') @payload('status', list=True) - def retweets_of_me(self, **kwargs): - """retweets_of_me(*, count, since_id, max_id, trim_user, \ - include_entities, include_user_entities) + def get_retweets_of_me(self, **kwargs): + """get_retweets_of_me(*, count, since_id, max_id, trim_user, \ + include_entities, include_user_entities) Returns the 20 most recent Tweets of the authenticated user that have been retweeted by others. -- 2.25.1