From: Harmon Date: Fri, 12 Feb 2021 23:25:30 +0000 (-0600) Subject: Update tests using API.followers_ids to pass keyword arguments X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c186e83502f4923b5b50049793be8367bc908058;p=tweepy.git Update tests using API.followers_ids to pass keyword arguments --- diff --git a/tests/test_api.py b/tests/test_api.py index 33a5890..4008005 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -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): diff --git a/tests/test_cursors.py b/tests/test_cursors.py index 6592356..e78227a 100644 --- a/tests/test_cursors.py +++ b/tests/test_cursors.py @@ -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')