Skip to content

Commit

Permalink
Rename API.saved_searches to API.get_saved_searches
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed May 28, 2021
1 parent ee9ea2e commit 8b39f74
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/api.rst
Expand Up @@ -146,7 +146,7 @@
+------------------------------------------+-------------------------------------+
| `GET account/verify_credentials`_ | :meth:`API.verify_credentials` |
+------------------------------------------+-------------------------------------+
| `GET saved_searches/list`_ | :meth:`API.saved_searches` |
| `GET saved_searches/list`_ | :meth:`API.get_saved_searches` |
+------------------------------------------+-------------------------------------+
| `GET saved_searches/show/:id`_ | :meth:`API.get_saved_search` |
+------------------------------------------+-------------------------------------+
Expand Down Expand Up @@ -507,7 +507,7 @@ Manage account settings and profile

.. automethod:: API.verify_credentials

.. automethod:: API.saved_searches
.. automethod:: API.get_saved_searches

.. automethod:: API.get_saved_search

Expand Down
2 changes: 1 addition & 1 deletion tests/test_api.py
Expand Up @@ -351,7 +351,7 @@ def testgetlistsubscriber(self):
@tape.use_cassette('testsavedsearches.json')
def testsavedsearches(self):
s = self.api.create_saved_search('test')
self.api.saved_searches()
self.api.get_saved_searches()
self.assertEqual(self.api.get_saved_search(s.id).query, 'test')
self.api.destroy_saved_search(s.id)

Expand Down
4 changes: 2 additions & 2 deletions tweepy/api.py
Expand Up @@ -2569,8 +2569,8 @@ def verify_credentials(self, **kwargs):
)

@payload('saved_search', list=True)
def saved_searches(self, **kwargs):
"""saved_searches()
def get_saved_searches(self, **kwargs):
"""get_saved_searches()
Returns the authenticated user's saved search queries.
Expand Down

0 comments on commit 8b39f74

Please sign in to comment.