Commit Graph

311 Commits

Author SHA1 Message Date
Thomas Adamcik
cf05777e9f Fix renaming of stored playlists on disk 2010-04-26 23:24:12 +02:00
Thomas Adamcik
658925dfc1 Add additional persistence tests for playlists 2010-04-26 23:19:19 +02:00
Thomas Adamcik
8af5b553a3 Add basic test_created_playlist_is_persisted test 2010-04-26 23:07:50 +02:00
Thomas Adamcik
827d450211 Add FIXME 2010-04-26 23:07:31 +02:00
Thomas Adamcik
4f3b2cd45a Fix test_save test 2010-04-26 23:07:01 +02:00
Thomas Adamcik
3b5e94b4a4 Use temporary playlist folder for stored playlist tests 2010-04-26 23:06:43 +02:00
Thomas Adamcik
4c160dd418 Add uri handler test 2010-04-26 21:22:52 +02:00
Thomas Adamcik
221d5901fd Add save test 2010-04-26 21:14:00 +02:00
Thomas Adamcik
c16dd17484 Add rename and rename tests 2010-04-26 21:10:01 +02:00
Thomas Adamcik
516bfac991 SkipTest for lookup and refresh tests 2010-04-26 21:04:34 +02:00
Thomas Adamcik
2ff19745bf Add search tests for stored playlists 2010-04-26 21:02:22 +02:00
Thomas Adamcik
6ae2b9c018 Add a bunch of get tests for stored playlists 2010-04-26 20:58:26 +02:00
Thomas Adamcik
ed87fee4cd Ensure that we tear down stored playlist tests 2010-04-26 20:50:35 +02:00
Thomas Adamcik
f4eae3af94 Add test_delete_non_existant_playlist and test_delete_playlist 2010-04-26 20:49:46 +02:00
Thomas Adamcik
54694f63c4 Add test_playlists_empty_to_start_with test 2010-04-26 20:42:36 +02:00
Thomas Adamcik
2316df7ddc Add test_create_in_playlists test 2010-04-26 20:41:22 +02:00
Thomas Adamcik
cf205d0eae Add GStreamerBackendStoredPlaylistsControllerTest 2010-04-26 20:34:14 +02:00
Thomas Adamcik
23a5363ef7 Use * import for gstreamer 2010-04-26 20:33:50 +02:00
Thomas Adamcik
b025d360e8 Set __all__ for tests.backends.base 2010-04-26 20:33:31 +02:00
Thomas Adamcik
188211edfc Attempt at fixing uri handling for windows in tests 2010-04-15 22:05:36 +02:00
Stein Magnus Jodal
3375f806f0 Merge commit 'adamcik/gstreamer' 2010-04-15 20:58:04 +02:00
Thomas Adamcik
0d9085b033 Add test for mp3, ogg and flac support in gstreamer backend 2010-04-14 23:27:30 +02:00
Thomas Adamcik
c535c22884 Switch to wav test files for gstreamer tests 2010-04-14 23:22:08 +02:00
Stein Magnus Jodal
7ba13ecaf8 Merge commit 'adamcik/gstreamer' 2010-04-14 23:09:32 +02:00
Thomas Adamcik
5bd6bf455b Init time for backend varies, so longer sleep is required in test_time_position_when_playing 2010-04-14 16:05:08 +02:00
Thomas Adamcik
d639a58188 Convert callback test to threading.Event 2010-04-14 14:56:42 +02:00
Stein Magnus Jodal
80f8fa6549 Formatting 2010-04-13 00:36:26 +02:00
Thomas Adamcik
a2cafd3da9 Add implementation of test_playing_track_that_isnt_in_playlist 2010-04-11 03:29:42 +02:00
Thomas Adamcik
0f0183e316 Add implementation of test_playlist_attribute_is_immutable 2010-04-11 03:22:47 +02:00
Thomas Adamcik
ebaa048378 Add implementation of test_load_replaces_playlist 2010-04-11 03:20:58 +02:00
Thomas Adamcik
36f3966445 Add implementation of test_shuffle_open_subset 2010-04-11 03:18:17 +02:00
Thomas Adamcik
f0d4deed1e Add implementation of test_playlist_position_at_end_of_playlist 2010-04-11 03:14:33 +02:00
Thomas Adamcik
b8b46cfac5 Add stub for test_load_replaces_playlist 2010-04-09 08:37:12 +02:00
Thomas Adamcik
619ce7230d Move load appends test to frontend where it belongs 2010-04-09 08:36:09 +02:00
Thomas Adamcik
9c8cab684c Move SkipTests to tests.SkipTest 2010-04-09 08:35:45 +02:00
Thomas Adamcik
16c78465b4 Add stub for testing another corner case 2010-04-09 07:30:51 +02:00
Thomas Adamcik
86c8ec6644 Implement test_playing_track_with_invalid_uri 2010-04-09 07:30:18 +02:00
Thomas Adamcik
285f5798d2 Fix test that was not updatet with respect to next starting playback 2010-04-09 07:29:43 +02:00
Thomas Adamcik
5b526b11f8 Remove most instances of sleep from tests 2010-04-07 14:07:19 +02:00
Thomas Adamcik
e8ed2685e6 Add stub test_playing_track_with_invalid_uri 2010-04-07 12:58:50 +02:00
Thomas Adamcik
ebf43d334c Adjust sleep time in tests 2010-04-07 12:54:40 +02:00
Thomas Adamcik
7170222a76 Try to reduce chances of sleep not being long enough by increasing sleep 2010-04-07 12:48:03 +02:00
Thomas Adamcik
3e9a061544 Try to reduce chances of sleep not being long enough 2010-04-07 12:46:17 +02:00
Thomas Adamcik
efb9390b4f Skip not implemented tests 2010-04-07 12:28:38 +02:00
Thomas Adamcik
5c507f40b5 Remove volume tests from backend 2010-04-07 03:00:38 +02:00
Thomas Adamcik
d7e33e57f2 Add tests based on protocol analysis of MPD failure situtations 2010-04-07 02:34:11 +02:00
Thomas Adamcik
1a17cd97d3 Add working test_random_until_end_of_playlist_and_play_from_start 2010-04-07 02:15:29 +02:00
Thomas Adamcik
3f849b3077 Add working test_next_until_end_of_playlist_and_play_from_start 2010-04-07 02:15:10 +02:00
Thomas Adamcik
2eae9f5cd1 Add extra assertion for current track at end of playlist 2010-04-07 02:14:44 +02:00
Thomas Adamcik
a036d22b56 Ensure that reaching end resets current_track 2010-04-07 02:13:45 +02:00
Thomas Adamcik
d806a304bc Adjust way to fragile test_next_with_random 2010-04-07 02:02:35 +02:00
Thomas Adamcik
a352590f60 Fix callback tests 2010-04-07 02:00:59 +02:00
Thomas Adamcik
361d66727e Fix BasePlaybackController with respect to test_random_until_end_of_playlist 2010-04-07 01:46:21 +02:00
Thomas Adamcik
f67c041db0 Adjust test_next_track_at_end_of_playlist_with_repeat 2010-04-07 01:46:06 +02:00
Thomas Adamcik
9d07b540ad Fix BasePlaybackController with respect to test_next_track_at_end_of_playlist 2010-04-07 01:45:49 +02:00
Thomas Adamcik
e6b8e1545a Fix BasePlaybackController with respect to test_played_track_during_random_not_played_again 2010-04-07 01:45:15 +02:00
Thomas Adamcik
0073e938bd Fix test_next_track_at_end_of_playlist and test_next_track_at_end_of_playlist_with_repeat tests 2010-04-07 01:39:57 +02:00
Thomas Adamcik
f1ac153258 Fix BasePlaybackController with respect to test_current_track_after_completed_playlist 2010-04-07 01:35:44 +02:00
Thomas Adamcik
153c8a2297 Add extra assertion to playlist callback tests 2010-04-07 01:14:38 +02:00
Thomas Adamcik
747b879575 Add test_playlist_position_at_end_of_playlist stub 2010-04-07 01:13:50 +02:00
Thomas Adamcik
2924974b86 Update tests based on MPD behavior. next, previous, resume should not trigger playback 2010-04-07 01:13:14 +02:00
Thomas Adamcik
e18c1fb1c2 Implement test_current_track_after_completed_playlist 2010-04-07 01:11:10 +02:00
Thomas Adamcik
7ddff0cb27 Use self.tracks where possible in tests 2010-04-07 01:10:38 +02:00
Thomas Adamcik
813ebe8191 Add test stub that should verify that load appends playlists 2010-04-07 01:07:12 +02:00
Thomas Adamcik
22bdcd8ba5 Add extra assertion to test_clear_empty_playlist 2010-04-07 01:06:40 +02:00
Thomas Adamcik
48c7089083 Add test_next_track_with_random_after_load_playlist to BasePlaybackControllerTest 2010-04-06 23:48:20 +02:00
Thomas Adamcik
a165304da7 Adjust fragile test criteria in test_next_with_random 2010-04-06 23:31:16 +02:00
Thomas Adamcik
560275edca Fix fragile test criteria in test_previous_with_random 2010-04-06 23:24:05 +02:00
Thomas Adamcik
be952b0173 Rename test_play_track_with_random_removes_track to test_played_track_during_random_not_played_again 2010-04-06 23:02:48 +02:00
Thomas Adamcik
4ff5c578ba Fix oversight in test_play_when_paused 2010-04-06 22:09:16 +02:00
Thomas Adamcik
4a8a30d3e4 Add STOPPED assert to BasePlaybackControllerTest.test_next_for_empty_playlist 2010-04-06 21:30:31 +02:00
Thomas Adamcik
3d11023bdc Cleanup BasePlaybackControllerTest.test_next_at_end_of_playlist 2010-04-06 21:29:53 +02:00
Thomas Adamcik
02d83288fa Add test_end_of_track_callback_gets_called 2010-04-06 21:06:22 +02:00
Thomas Adamcik
73829d9034 Ensure that tests are run with dummy mixer 2010-04-06 19:16:03 +02:00
Thomas Adamcik
d95bb80c10 nosetests captures logging for us 2010-04-06 18:53:46 +02:00
Thomas Adamcik
0640854ac6 Log which test is being run 2010-04-06 16:55:55 +02:00
Thomas Adamcik
eb538f46be Add destroy method to all backend pieces 2010-04-06 15:50:34 +02:00
Thomas Adamcik
62684af518 Cleanup volume testing from playback tests 2010-04-06 15:03:25 +02:00
Thomas Adamcik
48acbf701c Add FIXMEs 2010-04-06 15:02:15 +02:00
Thomas Adamcik
07f98fbf4f Rename basetests to base 2010-04-05 22:42:30 +02:00
Thomas Adamcik
b126311f18 Fix BaseCurrentPlaylistControllerTest.test_load 2010-04-05 21:27:53 +02:00
Thomas Adamcik
e9da4f53d4 Update get_ tests to match new API 2010-04-05 20:27:06 +02:00
Thomas Adamcik
4334548ea4 Call playback.destroy instead of backend.destroy for the time being 2010-04-05 20:26:44 +02:00
Thomas Adamcik
2d65666d58 Merge branch 'master' into gstreamer
Conflicts:
	mopidy/backends/__init__.py
	mopidy/mpd/handler.py
2010-04-05 19:18:20 +02:00
Thomas Adamcik
17da9900fe Rename gstreamer test file to play nice with nose 2010-04-05 14:40:04 +02:00
Stein Magnus Jodal
6d46d77b7a Update CPC.get() to match behaviour of SPC.get() 2010-03-31 23:42:03 +02:00
Stein Magnus Jodal
89346aa76b Refactor BaseStoredPlaylistsController.get_by_name to take multiple criteria 2010-03-31 23:28:10 +02:00
Stein Magnus Jodal
682b3cc354 Test current BaseStoredPlaylistController.get_by_name() behaviour 2010-03-31 23:18:16 +02:00
Stein Magnus Jodal
cb3740138a Explicitly use DummyMixer in tests 2010-03-31 20:58:26 +02:00
Stein Magnus Jodal
c24c7818e5 Refactor BaseCurrentPlaylistController.get_by_{id,uri} into a generic get(**criteria) 2010-03-31 20:48:03 +02:00
Stein Magnus Jodal
db4f449be9 Add tests for DummyCurrentPlaylistController.get_by_{id,uri} 2010-03-31 18:26:55 +02:00
Stein Magnus Jodal
fdf3d4f11b Replace CoverageTestRunner with nosetests 2010-03-23 23:54:49 +01:00
Thomas Adamcik
805a8315cd Add test_random_until_end_of_playlist_and_play_from_start stub 2010-03-23 21:59:34 +01:00
Stein Magnus Jodal
432d70ff51 Remove unused imports 2010-03-20 16:50:18 +01:00
Thomas Adamcik
3a19794a15 Add test_seek_beyond_end_of_song and test_seek_beyond_end_of_song_for_last_track 2010-03-07 22:24:05 +01:00
Thomas Adamcik
c5d89cb57f Clean tests 2010-03-07 21:59:04 +01:00
Thomas Adamcik
f9f3ec9c4a Add test_random_until_end_of_playlist, test_random_until_end_of_playlist_with_repeat and test_play_track_with_random_removes_track (still needs more work to pass tests 2010-02-22 02:29:40 +01:00
Thomas Adamcik
96a974ac4d Fix random tests and impl 2010-02-20 21:42:17 +01:00
Thomas Adamcik
6c2adbed3b Implement random tests 2010-02-20 04:42:47 +01:00
Thomas Adamcik
b359e515c3 Add test return values test 2010-02-20 04:39:14 +01:00
Thomas Adamcik
ce5c3780a3 Add test_previous_track_with_consume and test_previous_track_with_random 2010-02-20 03:16:38 +01:00
Thomas Adamcik
60a0d182e2 Fix test_previous_track_with_consume 2010-02-19 23:09:39 +01:00
Thomas Adamcik
5639c03ea7 Try event harder to tear down gst correctly 2010-02-19 11:21:46 +01:00
Thomas Adamcik
8ffa81f7a9 s/shuffle/random/ in tests 2010-02-18 17:05:17 +01:00
Thomas Adamcik
820da31161 Add test_previous_track_with_consume 2010-02-18 16:26:10 +01:00
Thomas Adamcik
a46184dcf2 Add test_play_with_consume and test_next_with_consume 2010-02-18 16:25:13 +01:00
Thomas Adamcik
496a7d19dc Add test_consume_off_by_default 2010-02-18 16:18:50 +01:00
Thomas Adamcik
0f4b9ce4dc Add stub test_current_track_after_completed_playlist 2010-02-18 16:01:03 +01:00
Thomas Adamcik
a4c9d7c8a0 Correct test_previous_at_start_of_playlist to match mpd 2010-02-18 15:59:18 +01:00
Thomas Adamcik
6d054e5367 Add test_shufflet_off_by_default 2010-02-18 15:40:31 +01:00
Thomas Adamcik
458ff52b86 Add test_repeat_off_by_default and test_next_track_at_end_of_playlist_with_repeat 2010-02-18 15:39:15 +01:00
Thomas Adamcik
1236767bfe Add test_end_of_playlist_stops 2010-02-18 15:16:25 +01:00
Thomas Adamcik
613e3b86ba Add test_end_of_song_starts_next_track 2010-02-18 15:12:17 +01:00
Thomas Adamcik
7dbce96bce Add length to tracks and use length in tests 2010-02-18 15:11:19 +01:00
Thomas Adamcik
d52bfe3658 Convert tests to tracks instead of uris 2010-02-18 13:52:08 +01:00
Thomas Adamcik
0cd56b0800 Add test_seek_beyond_start_of_song tests 2010-02-18 13:43:35 +01:00
Thomas Adamcik
173d09d722 Add test_seek_when_paused* tests 2010-02-18 13:00:59 +01:00
Thomas Adamcik
5a11f17155 Add more test_seek_* tests 2010-02-18 12:58:52 +01:00
Thomas Adamcik
a3e62a529f Add test_resume_continues_from_right_position 2010-02-18 04:02:33 +01:00
Thomas Adamcik
ba7a836d8b Add test_time_position_when_playing and test_time_position_when_paused fixing code to pass them 2010-02-18 03:50:46 +01:00
Thomas Adamcik
5fc47b8611 Add test_time_position_when_stopped 2010-02-18 03:40:11 +01:00
Thomas Adamcik
a01810619c Add @populate_playlist to some tests 2010-02-18 03:36:56 +01:00
Thomas Adamcik
084c0a8321 Add test_new_playlist_loaded_callback_when_* and implementation 2010-02-18 03:36:24 +01:00
Thomas Adamcik
cdc763b114 Add test_new_playlist_loaded_callback_gets_called 2010-02-18 03:09:08 +01:00
Thomas Adamcik
339de6894f Mark tests that need design decision needed before we can move forward 2010-02-18 02:58:13 +01:00
Thomas Adamcik
82951d1dc8 Update setup and teardown for tests 2010-02-18 02:55:24 +01:00
Thomas Adamcik
b0699b4683 Use actuall mp3s for testing 2010-02-18 02:42:09 +01:00
Thomas Adamcik
f920aa31ca Fix broken test code 2010-02-18 02:31:36 +01:00
Thomas Adamcik
ea8399b58a Add more test stubs 2010-02-18 02:26:38 +01:00
Thomas Adamcik
a5b6e456b9 Add wrapping of __name__ and __doc__ 2010-02-17 22:55:56 +01:00
Thomas Adamcik
66965c041e Add mechanism for tearing down backend cleanly 2010-02-15 08:35:52 +01:00
Thomas Adamcik
dda2fe05a3 Add test_previous_track_empty_playlist 2010-02-14 18:35:10 +01:00
Thomas Adamcik
81d6e07088 Add test_next_track_at_end_of_playlist 2010-02-14 18:31:57 +01:00
Thomas Adamcik
ce349e37da Add more tests for previous 2010-02-14 17:36:37 +01:00
Thomas Adamcik
168d62f7ba Add test_next_track_empty_playlist 2010-02-14 16:46:33 +01:00
Thomas Adamcik
3b089b2b13 Add test_next_track_after_previous 2010-02-14 16:45:07 +01:00
Thomas Adamcik
41da0656c6 Add test_previous_at_start_of_playlist and test_previous_for_empty_playlist 2010-02-14 16:26:26 +01:00
Thomas Adamcik
e719956257 Add test_previous_triggers_playback 2010-02-14 16:23:56 +01:00
Thomas Adamcik
50fe8c5cd2 Add test_next_for_empty_playlist 2010-02-14 16:21:35 +01:00
Thomas Adamcik
f9312b372f Add previous tests and implementation 2010-02-14 16:08:38 +01:00
Thomas Adamcik
4c80a585eb Fix typo 2010-02-14 16:08:11 +01:00
Thomas Adamcik
688458549d Add more stub tests 2010-02-14 15:46:23 +01:00
Thomas Adamcik
80852f3854 Ensure that volume returned is int 2010-02-14 15:45:17 +01:00
Thomas Adamcik
399ce26a63 Add stop tests 2010-02-14 15:27:23 +01:00
Thomas Adamcik
73c6e09bc3 Add stop when stopped test 2010-02-14 15:25:46 +01:00
Thomas Adamcik
4c4b615538 Test resume when playing 2010-02-14 15:23:43 +01:00
Thomas Adamcik
9901820ea4 Update some play tests 2010-02-14 15:19:55 +01:00
Thomas Adamcik
ff001a899c Tests for paused state and gstreamer impl 2010-02-14 15:19:38 +01:00
Thomas Adamcik
d38d64d30f At tests for even more states 2010-02-14 14:50:11 +01:00
Thomas Adamcik
49e00fba8d Add volume test 2010-02-14 14:29:47 +01:00