mopidy/tests/core
Thomas Adamcik bbf52eede9 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.

Cherry picked from the WIP gapless branch.
2015-03-21 00:05:00 +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 backend: Move DummyBackend into tests package 2015-02-13 01:37:07 +01:00
test_history.py core: Make history.add() private 2015-03-20 22:41:56 +01:00
test_library.py core: Add uris argument to library.lookup (Fixes #1008) 2015-03-17 23:49:21 +01:00
test_listener.py core: Test stream_title_changed listener 2015-03-14 00:30:46 +01:00
test_mixer.py core: get_mute() with no mixer returns None 2015-03-13 21:19:56 +01:00
test_playback.py backend: Change playback API (breaking change!) 2015-03-21 00:05:00 +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