Commit Graph

408 Commits

Author SHA1 Message Date
Stein Magnus Jodal
a8d1d41ab3 Use assertIn and assertNotIn in tests 2012-09-15 17:46:25 +02:00
Stein Magnus Jodal
2ba05f9405 Add PlaybackState enum 2012-09-14 01:17:55 +02:00
Stein Magnus Jodal
aab37302a1 Rename mopidy.gstreamer to mopidy.audio 2012-09-14 01:05:42 +02:00
Stein Magnus Jodal
dbf7030d5b Fix crash in local backend when looking up unknown path 2012-09-11 23:23:36 +02:00
Stein Magnus Jodal
b0698d2e0a Add slice() method to CurrentPlaylistController to reduce copying of the playlist 2011-12-28 02:38:07 +01:00
Stein Magnus Jodal
cda2fbbe96 Add index() method to CurrentPlaylistController to reduce copying of the playlist 2011-12-28 01:55:02 +01:00
Stein Magnus Jodal
c5a4bb0e22 Rename tracks_len to length, and add test 2011-12-27 22:31:50 +01:00
Thomas Adamcik
92a2408ace Remove some unused imports 2011-07-31 22:27:10 +02:00
Thomas Adamcik
1985b4af76 Switch all tests over to from tests import unittest, which will be unittest2 on < 2.7 and plain unittest otherwise 2011-07-31 22:21:34 +02:00
Stein Magnus Jodal
662a17e7ba Use mock.patch instead of assigning a mock to the imported module 2011-07-31 17:05:18 +02:00
Stein Magnus Jodal
bd8471b353 Convert from listener impl to mock for testing actually emitting of events 2011-07-28 01:54:42 +02:00
Stein Magnus Jodal
596d29ebf6 Test that seek() emits seeked event 2011-07-28 01:17:39 +02:00
Stein Magnus Jodal
7a2984528c Merge branch 'develop' into feature/mpris-frontend
Conflicts:
	mopidy/backends/base/playback.py
	mopidy/listeners.py
	tests/backends/events_test.py
	tests/listeners_test.py
2011-07-27 00:19:04 +02:00
Thomas Adamcik
215ed61b0b Update existing listener events to reflect that they only notify about track changes 2011-07-19 03:44:46 +02:00
Stein Magnus Jodal
a8459c1d9b Merge branch 'develop' into feature/mpris-frontend 2011-07-17 23:57:32 +02:00
Stein Magnus Jodal
2b5f942f44 Don't use asserts new in unittest2/Python 2.7 2011-07-04 19:04:57 +02:00
Stein Magnus Jodal
5c325b03a1 Change stopped_playing event arg from stop_position to time_position 2011-06-29 17:36:39 +03:00
Stein Magnus Jodal
ad246706c6 Add paused_playing and resumed_playing events 2011-06-29 17:33:19 +03:00
Stein Magnus Jodal
0e8fb5e7ac Change stopped_playing event arg from stop_position to time_position 2011-06-29 17:33:12 +03:00
Stein Magnus Jodal
8386381479 Test that backend actually sends the events 2011-06-29 17:33:12 +03:00
Stein Magnus Jodal
213796305b Test that backend actually sends the events 2011-06-29 16:22:28 +03:00
Stein Magnus Jodal
622a99ad3b Change uri_handlers to uri_schemes on backends 2011-06-27 18:02:02 +03:00
Stein Magnus Jodal
3f325c936d Change uri_handlers to uri_schemes on backends 2011-06-22 00:04:02 +03:00
Stein Magnus Jodal
61375f0edc Merge branch 'develop' into feature/mpris-frontend
Conflicts:
	docs/changes.rst
2011-06-07 02:30:01 +02:00
Stein Magnus Jodal
1e73e7bbf7 Make mpris.Previous() state change tests pass 2011-06-07 00:08:48 +02:00
Stein Magnus Jodal
3f97f3f78b Convert cp_track from tuple to namedtuple, to get more readable code 2011-06-04 20:46:34 +02:00
Thomas Adamcik
472e4d2790 Rename output to gstreamer in backends 2011-04-25 21:30:01 +02:00
Thomas Adamcik
4a1df118fb Move GStreamerOutput up one level to mopidy.gstreamer and rename to GStreamer 2011-04-25 01:31:28 +02:00
Thomas Adamcik
7016a20811 Kill of BaseOutput 2011-04-25 01:31:28 +02:00
Stein Magnus Jodal
79771d6e2c Rename data_folder() to path_to_data_dir() 2011-04-07 15:55:03 +02:00
Stein Magnus Jodal
b83dad7845 Update tests to match change in previous commit 2011-03-21 00:34:54 +01:00
Stein Magnus Jodal
46c6ee68df Fix ~200 backend tests 2011-03-10 23:19:44 +01:00
Stein Magnus Jodal
c097af1a83 Fix a bunch of pylint errors/warnings in test suite 2011-01-23 18:39:05 +01:00
Stein Magnus Jodal
b7a0d75372 Merge branch 'feature/split-controllers-and-providers' into develop 2010-11-03 00:09:36 +01:00
Stein Magnus Jodal
fc9daa5a5a Rename {Base => }PlaybackController 2010-11-03 00:06:32 +01:00
Stein Magnus Jodal
76ce2a6345 Rename {Base => }StoredPlaylistController 2010-11-02 23:58:10 +01:00
Stein Magnus Jodal
5ada4709bd Rename {Base => }LibraryController 2010-11-02 23:54:02 +01:00
Stein Magnus Jodal
67885e83b6 Rename {Base => }CurrentPlaylistController 2010-11-02 23:50:55 +01:00
Stein Magnus Jodal
79b61895cc Remove unmaintained tests 2010-11-02 23:49:15 +01:00
Thomas Adamcik
9cc053cfd2 Add albumartist to musicbrainz test 2010-11-02 20:20:01 +01:00
Thomas Adamcik
6cba4bc564 Add albumartist support 2010-11-02 20:19:29 +01:00
Thomas Adamcik
326ade05cc Add musicbrainz support to tag_cache parsing 2010-11-02 17:24:42 +01:00
Thomas Adamcik
8d30b745d2 Add test_musicbrainz_tagcache as reminder that tag cache parser does not know about musicbrainz yet 2010-11-02 01:02:41 +01:00
Stein Magnus Jodal
0b681a4e4c Merge branch 'develop' into feature/multi-backend
Conflicts:
	mopidy/backends/local/__init__.py
2010-11-02 00:33:06 +01:00
Thomas Adamcik
d4437d5adc Decode all data from tag_cache as utf-8 2010-11-01 23:06:45 +01:00
Thomas Adamcik
c513d0f6e7 Rename settings that have dirs or file to _PATH and _FILE 2010-11-01 00:37:55 +01:00
Stein Magnus Jodal
704b5517e1 Split xPlaybackController into xPlaybackController and xPlaybackProvider 2010-10-26 13:25:52 +02:00
Stein Magnus Jodal
1d25a2ddea Remove redundant calls to playback.on_current_playlist_change() 2010-10-21 23:25:52 +02:00
Stein Magnus Jodal
6930e7a9ad Merge 'develop' into 'feature/encapsulate-queues' 2010-08-24 01:13:00 +02:00
Stein Magnus Jodal
9fe5874069 Skip another backend test that does not work with DummyOutput 2010-08-24 01:04:43 +02:00
Stein Magnus Jodal
64b760bf96 Ignore tests which uses time.sleep (and that don't work with DummyOutput+LocalBackend) 2010-08-24 00:50:12 +02:00
Thomas Adamcik
405d411464 Update tests to clear runtime settings 2010-08-24 00:19:05 +02:00
Stein Magnus Jodal
a62a6e01a7 Use DummyOutput in tests 2010-08-23 23:45:42 +02:00
Stein Magnus Jodal
f099161e24 Never block without timeout in a test 2010-08-23 23:45:21 +02:00
Stein Magnus Jodal
00cec3375f Add TODO on testing playlist repeat 2010-08-23 15:16:38 +02:00
Stein Magnus Jodal
4722828c8f Split backend tests into multiple files 2010-08-22 20:40:15 +02:00
Stein Magnus Jodal
d4f8cdadd5 Rename tests.backend.{base => base.backend} 2010-08-22 19:50:14 +02:00
Stein Magnus Jodal
421e1f2ab1 Rename libspotify_integrationtest => libspotify.backend_integrationtest 2010-08-22 19:45:08 +02:00
Stein Magnus Jodal
df22256f09 Review gstreamer-local-backend branch 2010-08-21 23:25:38 +02:00
Thomas Adamcik
ef03bbe19e Add tests to check return value of seek 2010-08-20 00:17:08 +02:00
Thomas Adamcik
a20251daac Ensure that backend tests setup right backend in setting 2010-08-18 23:41:44 +02:00
Thomas Adamcik
70dd200365 Merge branch 'develop' into gstreamer-local-backend 2010-08-18 23:32:45 +02:00
Stein Magnus Jodal
a87f7f9381 Remove tests as it is a duplicate of test_end_of_song_with_single_and_repeat_starts_same 2010-08-18 12:36:47 +02:00
Thomas Adamcik
8203d45559 Merge branch 'gstreamer' into gstreamer-local-backend
Conflicts:
	mopidy/backends/local/__init__.py
	tests/backends/base.py
2010-08-18 00:55:24 +02:00
Thomas Adamcik
785ef04e7b Rename load to append in tests 2010-08-18 00:53:29 +02:00
Thomas Adamcik
c0e4454e67 Remove obsolete search tests 2010-08-18 00:49:26 +02:00
Thomas Adamcik
d01813b72c Rename previous_track in tests 2010-08-18 00:42:26 +02:00
Thomas Adamcik
0db797bc12 Rename next_track in tests 2010-08-18 00:39:10 +02:00
Thomas Adamcik
28e1a15ac7 Remove SkipTest 2010-08-18 00:38:54 +02:00
Stein Magnus Jodal
14b7b080dc Merge remote branch 'knutz3n/gstreamer' into gstreamer 2010-08-17 02:35:55 +02:00
Stein Magnus Jodal
e4edd70c6d Split mopidy.utils into smaller pieces 2010-08-17 00:32:31 +02:00
Johannes Knutsen
b32dfee65e rename end_of_track_callback to on_end_of_track 2010-08-17 00:18:46 +02:00
Johannes Knutsen
b502643910 added the same tests for end_of_track_callback as was for next 2010-08-17 00:01:20 +02:00
Johannes Knutsen
87e489a26d rearranged test_next tests 2010-08-16 23:55:00 +02:00
Thomas Adamcik
5c632116b8 Merge branch 'gstreamer' of git://github.com/jodal/mopidy into gstreamer-local-backend
Conflicts:
	mopidy/outputs/gstreamer.py
2010-08-16 23:39:51 +02:00
Johannes Knutsen
ffd4bebba3 Merge branch 'gstreamer' of git://github.com/jodal/mopidy into singlerepeat 2010-08-16 21:01:32 +02:00
Johannes Knutsen
5524b1a011 test next() keeps skipped cp track, but end_of_track removes track 2010-08-16 21:00:31 +02:00
Stein Magnus Jodal
997bffa9d2 Merge remote branch 'adamcik/gstreamer-output-testing' into gstreamer 2010-08-16 19:38:56 +02:00
Johannes Knutsen
6905b81009 merged jodal gstreamer with knutz3n singlerepeat branch 2010-08-16 18:36:37 +02:00
Stein Magnus Jodal
187d3544c4 Play next track at play error 2010-08-14 23:08:42 +02:00
Stein Magnus Jodal
fb6b196646 Fix 'load' so one can append a playlist to the current playlist 2010-08-14 21:24:39 +02:00
Thomas Adamcik
cc9de4eff1 Add extra backend test that check that pause resumes correct song 2010-08-14 19:14:52 +02:00
Thomas Adamcik
504802b02d Update test_end_of_track_callback_gets_called to check that end_of_track is in core_queue 2010-08-14 19:06:08 +02:00
Johannes Knutsen
ca52dd6363 added tests for next track in single and repeat mode 2010-08-14 18:30:22 +02:00
Thomas Adamcik
8950385815 Update local backend tests to setup output and queues 2010-08-14 17:27:26 +02:00
Thomas Adamcik
77fde2fce7 Remove skip test for local backend 2010-08-14 17:26:25 +02:00
Thomas Adamcik
d04b4c3181 Skip local backend tests as they break new gso tests due to gst usage 2010-08-14 16:24:28 +02:00
Stein Magnus Jodal
da2a44fd17 Fix 400 or so tests broken by changing the mixer constructor 2010-08-14 04:07:50 +02:00
Thomas Adamcik
acd0437193 Remove despotify backend as library is no longer maintained 2010-08-13 20:44:24 +02:00
Stein Magnus Jodal
46177f65f1 Rename mopidy.backends.{gstreamer => local} 2010-08-10 21:45:01 +02:00
Stein Magnus Jodal
78f71794e1 Fix tests broken by knutz3n's search improvements, and sync GstreamerBackend's find_exact() and search() 2010-08-09 12:05:08 +02:00
Johannes Knutsen
2897f8e5f6 merge master branch 2010-08-09 09:49:07 +02:00
Stein Magnus Jodal
a6d06a6c4b Remove Track.id usage from de-/libspotify integration tests 2010-08-08 18:38:29 +02:00
Stein Magnus Jodal
22b6a3df8b Remove Track.id usage in Gstreamer backend 2010-08-08 17:15:47 +02:00
Johannes Knutsen
e7a87d0375 Merge branch 'master' of git://github.com/jodal/mopidy 2010-08-02 14:28:38 +02:00
Stein Magnus Jodal
80df6d1fea CurrentPlaylistCtl.add() returns the cp_track that was added to the current playlist 2010-08-02 14:24:12 +02:00
Johannes Knutsen
26ebdda214 merge jodal master 2010-08-02 14:08:02 +02:00
Stein Magnus Jodal
6d5d4d857d Make test match test name 2010-07-31 23:25:25 +02:00
Stein Magnus Jodal
64544a0b71 Use cp_track in CurrentPlaylistCtl and PlaybackCtl
A new data structure called ``cp_track`` is now used in the current
playlist controller and the playback controller. A ``cp_track`` is a
two-tuple of (CPID integer, mopidy.models.Track), identifying an
instance of a track uniquely within the current playlist.

This fixes issues with using playlists with multiple instances of the
same track.
2010-07-31 19:51:03 +02:00
Johannes Knutsen
be949d45df merge implementation of multi-word search 2010-07-26 10:48:30 +02:00