Skip to content

Commit

Permalink
Rename API.show_list_subscriber to API.get_list_subscriber
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed May 28, 2021
1 parent 9530060 commit bf26301
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions docs/api.rst
Expand Up @@ -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` |
+------------------------------------------+-------------------------------------+
Expand Down Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions tests/test_api.py
Expand Up @@ -344,9 +344,9 @@ def testsubscribeunsubscribelist(self):
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):
Expand Down
4 changes: 2 additions & 2 deletions tweepy/api.py
Expand Up @@ -1604,8 +1604,8 @@ def list_subscribers(self, **kwargs):
)

@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 \
)
Expand Down

0 comments on commit bf26301

Please sign in to comment.