From 8b39f748c91e3363cd35c3313563d43f1da25939 Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 28 May 2021 06:33:09 -0500 Subject: [PATCH] Rename API.saved_searches to API.get_saved_searches --- 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 e0df729..c228e05 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -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` | +------------------------------------------+-------------------------------------+ @@ -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 diff --git a/tests/test_api.py b/tests/test_api.py index c52f571..193a894 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -351,7 +351,7 @@ class TweepyAPITests(TweepyTestCase): @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) diff --git a/tweepy/api.py b/tweepy/api.py index a8ead9a..56ee842 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -2569,8 +2569,8 @@ class API: ) @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. -- 2.25.1