Skip to content

Conversation

@slipsnip
Copy link
Contributor

Tweep.error('Invalid Pagnation Mode') caused inside TestUserTweets after patching only tweepy.API.user_timeline when you try to use the new Cursor method:

cursor = tweepy.Cursor(api.user_timeline)

Where api is the authorized api returned from tweepy.API()

@slipsnip
Copy link
Contributor Author

Here is some supporting documentation of the problem https://yadi.sk/d/MAwRqryS0ocBpA
It is caused when you try to initialize a tweepy.Cursor object due to the unitest.mock.patch

@bbelderbos
Copy link
Collaborator

Thanks @slipsnip for catching that!

@bbelderbos bbelderbos merged commit 4c104b1 into pybites:master Oct 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants