Update tests using API.followers_ids to pass keyword arguments
authorHarmon <Harmon758@gmail.com>
Fri, 12 Feb 2021 23:25:30 +0000 (17:25 -0600)
committerHarmon <Harmon758@gmail.com>
Fri, 12 Feb 2021 23:28:23 +0000 (17:28 -0600)
tests/test_api.py
tests/test_cursors.py

index 33a5890b806573f9939a613608fc3dca6a7bc39a..40080058c9429d2bacd216a1619740110e557be3 100644 (file)
@@ -174,7 +174,7 @@ class TweepyAPITests(TweepyTestCase):
 
     @tape.use_cassette('testfollowersids.json')
     def testfollowersids(self):
-        self.api.followers_ids(username)
+        self.api.followers_ids(screen_name=username)
 
     @tape.use_cassette('testfriends.yaml', serializer='yaml')
     def testfriends(self):
index 65923562dac798cb4abd064a0ae580487630888c..e78227a336c16d6355e1560799e9177a5a8bf79f 100644 (file)
@@ -18,7 +18,7 @@ class TweepyCursorTests(TweepyTestCase):
         items = list(Cursor(self.api.friends_ids).items(2))
         self.assertEqual(len(items), 2)
 
-        items = list(Cursor(self.api.followers_ids, username).items(1))
+        items = list(Cursor(self.api.followers_ids, screen_name=username).items(1))
         self.assertEqual(len(items), 1)
 
     @tape.use_cassette('testcursorcursorpages.json')
@@ -26,7 +26,7 @@ class TweepyCursorTests(TweepyTestCase):
         pages = list(Cursor(self.api.friends_ids).pages(1))
         self.assertTrue(len(pages) == 1)
 
-        pages = list(Cursor(self.api.followers_ids, username).pages(1))
+        pages = list(Cursor(self.api.followers_ids, screen_name=username).pages(1))
         self.assertTrue(len(pages) == 1)
 
     @tape.use_cassette('testcursorsetstartcursor.json')