Rename API.show_list_subscriber to API.get_list_subscriber
authorHarmon <Harmon758@gmail.com>
Fri, 28 May 2021 11:19:59 +0000 (06:19 -0500)
committerHarmon <Harmon758@gmail.com>
Fri, 28 May 2021 11:19:59 +0000 (06:19 -0500)
cassettes/testgetlistsubscriber.json [moved from cassettes/testshowlistsubscriber.json with 100% similarity]
docs/api.rst
tests/test_api.py
tweepy/api.py

index b6d07efc74d79ece594c6e64b0da5675ab347e53..da1079466c7ef0ae1865d4150a97bbf1f1455175 100644 (file)
@@ -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
 
index 856cbacd599394a6af1269e1dee9d4b8b280d29c..776ad5e8acd640081c526bbd8fe42a7f1c0da1e5 100644 (file)
@@ -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):
index aeea41bdad9a8d3bbf238f1f18e548c6c1e1ec8d..01966fc427f80db57aef1ac26dabaf144b943cd5 100644 (file)
@@ -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 \
         )