From: Harmon Date: Sat, 13 Jul 2019 01:53:09 +0000 (-0500) Subject: Lower test requirements for Tweets and Following X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=690164a582041473f4bdbf14dc8da76db517fca9;p=tweepy.git Lower test requirements for Tweets and Following --- diff --git a/tests/test_cursors.py b/tests/test_cursors.py index 5c4b7b2..ebd8cbe 100644 --- a/tests/test_cursors.py +++ b/tests/test_cursors.py @@ -5,18 +5,18 @@ from tweepy import Cursor class TweepyCursorTests(TweepyTestCase): @tape.use_cassette('testidcursoritems.json') def testidcursoritems(self): - items = list(Cursor(self.api.user_timeline).items(25)) - self.assertEqual(len(items), 25) + items = list(Cursor(self.api.user_timeline).items(2)) + self.assertEqual(len(items), 2) @tape.use_cassette('testidcursorpages.json') def testidcursorpages(self): - pages = list(Cursor(self.api.user_timeline).pages(5)) - self.assertEqual(len(pages), 5) + pages = list(Cursor(self.api.user_timeline, count=1).pages(2)) + self.assertEqual(len(pages), 2) @tape.use_cassette('testcursorcursoritems.json') def testcursorcursoritems(self): - items = list(Cursor(self.api.friends_ids).items(10)) - self.assertEqual(len(items), 10) + items = list(Cursor(self.api.friends_ids).items(2)) + self.assertEqual(len(items), 2) items = list(Cursor(self.api.followers_ids, username).items(1)) self.assertEqual(len(items), 1)