Rename API.blocks_ids to API.get_blocked_ids
authorHarmon <Harmon758@gmail.com>
Thu, 3 Jun 2021 12:29:37 +0000 (07:29 -0500)
committerHarmon <Harmon758@gmail.com>
Thu, 3 Jun 2021 12:29:37 +0000 (07:29 -0500)
cassettes/testgetblockedids.json [moved from cassettes/testblocksids.json with 100% similarity]
docs/api.rst
tests/test_api.py
tweepy/api.py

index 33ca71efbb2c667cbd8821cbadb166b89ab6ec2f..d1a02b99d45cd82429263d99bc086f42746e620e 100644 (file)
     +------------------------------------------+--------------------------------------+
     | .. centered:: |Mute, block, and report users|_                                  |
     +------------------------------------------+--------------------------------------+
-    | `GET blocks/ids`_                        | :meth:`API.blocks_ids`               |
+    | `GET blocks/ids`_                        | :meth:`API.get_blocked_ids`          |
     +------------------------------------------+--------------------------------------+
     | `GET blocks/list`_                       | :meth:`API.get_blocks`               |
     +------------------------------------------+--------------------------------------+
@@ -530,7 +530,7 @@ Manage account settings and profile
 Mute, block, and report users
 -----------------------------
 
-.. automethod:: API.blocks_ids
+.. automethod:: API.get_blocked_ids
 
 .. automethod:: API.get_blocks
 
index e82b4fb0e20a407af59d41333e65f624024bcd34..867ea81864fc5c57c5277a48c3c6da3e9e5c6102 100644 (file)
@@ -256,9 +256,9 @@ class TweepyAPITests(TweepyTestCase):
     def testgetblocks(self):
         self.api.get_blocks()
 
-    @tape.use_cassette('testblocksids.json')
-    def testblocksids(self):
-        self.api.blocks_ids()
+    @tape.use_cassette('testgetblockedids.json')
+    def testgetblockedids(self):
+        self.api.get_blocked_ids()
 
     # TODO: Rewrite test to be less brittle. It fails way too often.
     # def testcreateupdatedestroylist(self):
index aa0138d29b1f2fc517ee844d5ada8a174273eff8..e40324f8b180c81525a048f5098ccc45ee457812 100644 (file)
@@ -2885,8 +2885,8 @@ class API:
 
     @pagination(mode='cursor')
     @payload('ids')
-    def blocks_ids(self, **kwargs):
-        """blocks_ids(*, stringify_ids, cursor)
+    def get_blocked_ids(self, **kwargs):
+        """get_blocked_ids(*, stringify_ids, cursor)
 
         Returns an array of numeric user IDs the authenticating user is
         blocking.