From 431ab15b846706dbd30387412aa601ba9f3810ab Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 28 May 2021 06:10:58 -0500 Subject: [PATCH] Rename API.show_list_member to API.get_list_member --- docs/api.rst | 4 ++-- tests/test_api.py | 2 +- tweepy/api.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/api.rst b/docs/api.rst index f6be3f6..b6d07ef 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -74,7 +74,7 @@ +------------------------------------------+-------------------------------------+ | `GET lists/members`_ | :meth:`API.list_members` | +------------------------------------------+-------------------------------------+ - | `GET lists/members/show`_ | :meth:`API.show_list_member` | + | `GET lists/members/show`_ | :meth:`API.get_list_member` | +------------------------------------------+-------------------------------------+ | `GET lists/memberships`_ | :meth:`API.lists_memberships` | +------------------------------------------+-------------------------------------+ @@ -433,7 +433,7 @@ Create and manage lists .. automethod:: API.list_members -.. automethod:: API.show_list_member +.. automethod:: API.get_list_member .. automethod:: API.lists_memberships diff --git a/tests/test_api.py b/tests/test_api.py index 24c7047..e615808 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -329,7 +329,7 @@ class TweepyAPITests(TweepyTestCase): @tape.use_cassette('testshowlistmember.json') def testshowlistmember(self): - self.assertTrue(self.api.show_list_member(owner_screen_name='Twitter', slug='Official-Twitter-Accounts', screen_name='TwitterAPI')) + self.assertTrue(self.api.get_list_member(owner_screen_name='Twitter', slug='Official-Twitter-Accounts', screen_name='TwitterAPI')) @tape.use_cassette('testsubscribeunsubscribelist.json') def testsubscribeunsubscribelist(self): diff --git a/tweepy/api.py b/tweepy/api.py index 43529e9..aeea41b 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -1354,8 +1354,8 @@ class API: ) @payload('user') - def show_list_member(self, **kwargs): - """show_list_member( \ + def get_list_member(self, **kwargs): + """get_list_member( \ *, list_id, slug, user_id, screen_name, owner_screen_name, \ owner_id, include_entities, skip_status \ ) -- 2.25.1