-
-
Notifications
You must be signed in to change notification settings - Fork 24
Write tests #6
Comments
Since both tweepy and botometer uses requests, the responses library can be a good call for those tests |
Maybe mea-culpa but anyway: when I'm about to write code that heavily depends on external and unknown (for me) APIs, I usually think TDD is not the best choice in terms of productivity. That was my case last Friday when I coded what became this repository. In that situation I tend to draft something that works, a prototype or a MVP. Once I'm a bit more familiar with the API responses, I step back and write some (regression?) tests. And this is the current status of this project IMHO. So that's why we have a total of zero tests so far. |
Thanks for @paulharte now we have a basis for writing tests. To PR #19 I added coverage so this issue has a sort of feedback on which parts are mostly untested:
|
Probably a good way to learn abouk
unittest.mock
(for Portuguese speakers, I have a YouTube video about mocks).The text was updated successfully, but these errors were encountered: