moogar0880 / PyTrakt

A Pythonic interface to the Trakt.tv REST API
Other
66 stars 51 forks source link

[python-pytrakt] Tests: Print urls for what mock data is missing #175

Open glensc opened 2 years ago

glensc commented 2 years ago

This makes it easy to understand if some mock data is missing:

Missing mock for GET https://api-v2launch.trakt.tv/shows/game-of-thrones/progress/collection
Missing mock for GET https://api-v2launch.trakt.tv/shows/game-of-thrones/progress/watched
glensc commented 2 years ago

I used print, as if I used logger then I could not see where that got logged. and even the print result is visible if I run the test from PyCharm, If I run from the terminal I get nothing.

glensc commented 2 years ago

From pytest docs, it should just work?

glensc commented 2 years ago

Carried to my fork: