mopidy/tests/local
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_json.py local: Readd support for search without limit for get_distinct support 2015-03-02 23:39:06 +01:00
test_library.py local: Fix get_images() for local libraries returning single track from lookup(). 2015-03-14 16:12:46 +01:00
test_playback.py backend: Change playback API (breaking change!) 2015-03-21 00:05:00 +01:00
test_playlists.py Fix #1026: Sort local playlists by name. 2015-03-07 22:42:22 +01:00
test_search.py Add test for exact search with album query 2015-01-05 23:24:52 -05:00
test_tracklist.py tests: Use assertEqual instead of assertEquals 2015-03-14 23:01:49 +01:00
test_translator.py Fix #1023: Remove support for local album images from coverartarchive.org 2015-03-06 10:02:08 +01:00