tamland / python-tidal

Python API for TIDAL music streaming service
GNU Lesser General Public License v3.0
402 stars 109 forks source link

Provide Mock classes #194

Open 2e0byo opened 1 year ago

2e0byo commented 1 year ago

Consumers want to test passing around valid tracks/artists/etc. Our current design makes this sufficiently hard that the best way is to use Mock(). It would be good to make it possible to spin up a valid Artist/Album/Track etc without needing e.g. a valid session.

This might be done in several ways:

I've not thought deeply about the challenges of doing this. Some of the workarounds can be seen in the tests for mopidy-tidal.