mopidy/tests/core
Thomas Adamcik 9fc319055c backend: Change playback API (breaking change)
While trying to remove traces of stop calls in core to get gapless working I
found we had no way to switch to switch tracks without triggering a play. This
change fixes this by changing the backends playback provider API.

- play() now _only_ starts playback and does not take any arguments.
- prepare_change() has been added, this could have been avoided with a kwarg to
  change_track(track), but that would break more backends.
- core has been updated to call prepare_change+change_track+play as needed.
- tests have been updated to handle this change.

Longer term I hope to completely rework the playback API in backends, as 99% of
our backends only use change_track(track) to translate URIs. So we should make
simple case simple, and handle mopidy-spotify / appsrc in some other way.
2015-01-21 22:13:41 +01:00
..
__init__.py py3: Use absolute imports by default 2014-12-07 20:17:10 +01:00
test_actor.py tests: Add noqa markers for setUp/tearDown 2014-12-30 00:23:01 +01:00
test_events.py tests: Add noqa markers for setUp/tearDown 2014-12-30 00:23:01 +01:00
test_history.py tests: Add noqa markers for setUp/tearDown 2014-12-30 00:23:01 +01:00
test_library.py tests: Add noqa markers for setUp/tearDown 2014-12-30 00:23:01 +01:00
test_listener.py tests: Add noqa markers for setUp/tearDown 2014-12-30 00:23:01 +01:00
test_playback.py backend: Change playback API (breaking change) 2015-01-21 22:13:41 +01:00
test_playlists.py tests: Add noqa markers for setUp/tearDown 2014-12-30 00:23:01 +01:00
test_tracklist.py tests: Add noqa markers for setUp/tearDown 2014-12-30 00:23:01 +01:00