mopidy/tests
Stein Magnus Jodal 1d108752f6 core: Make events emitted on playback consistent (fixes #629)
This commit does not try to make the events correct/perfect with regard to
GStreamer states, end-of-stream signalling, etc. It only tries to make the
events work consistently across all the methods on the playback controller.

* play(track) while already playing has changed from:

  - playback_state_changed(old_state='playing', new_state='playing')
  - track_playback_started(track=...)

  to:

  - playback_state_changed(old_state='playing', new_state='stopped')
  - track_playback_ended(track=..., time_position=...)
  - playback_state_changed(old_state='stopped', new_state='playing')
  - track_playback_started(track=...)

* next() has changed from:

  - track_playback_ended(track=..., time_position=...)
  - playback_state_changed(old_state='playing', new_state='stopped')
  - track_playback_ended(track=..., time_position=0)
  - playback_state_changed(old_state='stopped', new_state='playing')
  - track_playback_started(track=...)

  to same as play() above.

* previous() has changed in the same way as next().

* on_end_of_track() has changed from:

  - track_playback_ended(track=..., time_position=...)
  - playback_state_changed(old_state='playing', new_state='playing')
  - track_playback_started(track=...)

  to same as play() above.

* stop() has reordered its events from:

  - track_playback_ended(track=..., time_position=...)
  - playback_state_changed(old_state='playing', new_state='stopped')

  to:

  - playback_state_changed(old_state='playing', new_state='stopped')
  - track_playback_ended(track=..., time_position=...)
2014-01-14 01:18:39 +01:00
..
audio Forgot to adapt tests for audio actor 2014-01-10 23:38:59 +01:00
backend backend: Update backend API imports 2014-01-11 18:20:45 +01:00
config config: Improve handling of Deprecated config values 2013-12-04 22:38:16 +01:00
core core: Make events emitted on playback consistent (fixes #629) 2014-01-14 01:18:39 +01:00
data add translator tests for EXTM3U files 2013-12-09 15:54:28 +01:00
http http: Move mopidy.{frontends => }.http 2013-12-31 14:04:25 +01:00
local backend: Update backend API imports 2014-01-11 18:20:45 +01:00
mpd tests: Move mopidy.backends.dummy to tests.dummy_backend 2014-01-11 15:49:22 +01:00
outputs Make all strings unicode by default (fixes #224) 2012-11-13 00:18:47 +01:00
utils tests: Move mopidy.backends.dummy to tests.dummy_backend 2014-01-11 15:49:22 +01:00
__init__.py tests: Use utf-8 when encoding our test data paths to bytes 2013-06-27 00:25:25 +02:00
__main__.py Remove unused yappi profiler 2012-12-15 23:46:52 +01:00
commands_test.py commands: Move mopidy.utils.command to mopidy.commands 2013-11-16 03:02:45 +01:00
dummy_backend.py backend: Update backend API imports 2014-01-11 18:20:45 +01:00
exceptions_test.py tests: Import unittest directly from the stdlib 2013-04-29 19:45:25 +02:00
ext_test.py tests: Import unittest directly from the stdlib 2013-04-29 19:45:25 +02:00
help_test.py Revert "tests: Don't redefine PYTHONPATH" 2013-11-20 23:13:31 +01:00
models_test.py models: Add type specific constructors to Ref 2014-01-09 08:50:31 +01:00
version_test.py Bump version for development 2013-10-27 22:44:10 +01:00