From c186e83502f4923b5b50049793be8367bc908058 Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 12 Feb 2021 17:25:30 -0600 Subject: [PATCH] Update tests using API.followers_ids to pass keyword arguments --- tests/test_api.py | 2 +- tests/test_cursors.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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') -- 2.25.1