Lower test requirements for Tweets and Following
authorHarmon <Harmon758@gmail.com>
Sat, 13 Jul 2019 01:53:09 +0000 (20:53 -0500)
committerHarmon <Harmon758@gmail.com>
Sat, 13 Jul 2019 01:53:09 +0000 (20:53 -0500)
tests/test_cursors.py

index 5c4b7b2519c1000075792dbc5a907176acd0b547..ebd8cbec4e4d3e3664bb521637b9c553246c43bc 100644 (file)
@@ -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)