From bf26301bb5fa22cc6d52ebb41ed7fe63c5a33768 Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 28 May 2021 06:19:59 -0500 Subject: [PATCH] Rename API.show_list_subscriber to API.get_list_subscriber --- ...stshowlistsubscriber.json => testgetlistsubscriber.json} | 0 docs/api.rst | 4 ++-- tests/test_api.py | 6 +++--- tweepy/api.py | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) rename cassettes/{testshowlistsubscriber.json => testgetlistsubscriber.json} (100%) diff --git a/cassettes/testshowlistsubscriber.json b/cassettes/testgetlistsubscriber.json similarity index 100% rename from cassettes/testshowlistsubscriber.json rename to cassettes/testgetlistsubscriber.json diff --git a/docs/api.rst b/docs/api.rst index b6d07ef..da10794 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -86,7 +86,7 @@ +------------------------------------------+-------------------------------------+ | `GET lists/subscribers`_ | :meth:`API.list_subscribers` | +------------------------------------------+-------------------------------------+ - | `GET lists/subscribers/show`_ | :meth:`API.show_list_subscriber` | + | `GET lists/subscribers/show`_ | :meth:`API.get_list_subscriber` | +------------------------------------------+-------------------------------------+ | `GET lists/subscriptions`_ | :meth:`API.lists_subscriptions` | +------------------------------------------+-------------------------------------+ @@ -445,7 +445,7 @@ Create and manage lists .. automethod:: API.list_subscribers -.. automethod:: API.show_list_subscriber +.. automethod:: API.get_list_subscriber .. automethod:: API.lists_subscriptions diff --git a/tests/test_api.py b/tests/test_api.py index 856cbac..776ad5e 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -344,9 +344,9 @@ class TweepyAPITests(TweepyTestCase): def testlistsubscribers(self): self.api.list_subscribers(owner_screen_name='Twitter', slug='Official-Twitter-Accounts') - @tape.use_cassette('testshowlistsubscriber.json') - def testshowlistsubscriber(self): - self.assertTrue(self.api.show_list_subscriber(owner_screen_name='Twitter', slug='Official-Twitter-Accounts', screen_name='TwitterMktg')) + @tape.use_cassette('testgetlistsubscriber.json') + def testgetlistsubscriber(self): + self.assertTrue(self.api.get_list_subscriber(owner_screen_name='Twitter', slug='Official-Twitter-Accounts', screen_name='TwitterMktg')) @tape.use_cassette('testsavedsearches.json') def testsavedsearches(self): diff --git a/tweepy/api.py b/tweepy/api.py index aeea41b..01966fc 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -1604,8 +1604,8 @@ class API: ) @payload('user') - def show_list_subscriber(self, **kwargs): - """show_list_subscriber( \ + def get_list_subscriber(self, **kwargs): + """get_list_subscriber( \ *, owner_screen_name, owner_id, list_id, slug, user_id, \ screen_name, include_entities, skip_status \ ) -- 2.25.1