PyTrakt icon indicating copy to clipboard operation
PyTrakt copied to clipboard

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

Open glensc opened this issue 3 years ago • 3 comments
trafficstars

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 avatar Jan 12 '22 13:01 glensc

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 avatar Jan 12 '22 13:01 glensc

From pytest docs, it should just work?

  • https://docs.pytest.org/en/6.2.x/logging.html

glensc avatar Jan 12 '22 13:01 glensc

Carried to my fork:

  • https://github.com/glensc/python-pytrakt/commit/f82cfcc61aa7dc49609fd4040c94851c815025c7

glensc avatar Nov 02 '22 20:11 glensc