From 690164a582041473f4bdbf14dc8da76db517fca9 Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 12 Jul 2019 20:53:09 -0500 Subject: [PATCH] Lower test requirements for Tweets and Following --- tests/test_cursors.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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) -- 2.25.1