Commit Graph

408 Commits

Author SHA1 Message Date
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
Thomas Adamcik
33451a9cf9 Add placeholder tests 2010-02-14 04:25:08 +01:00
Thomas Adamcik
144fa82967 Expand number of play tests 2010-02-14 04:01:27 +01:00
Thomas Adamcik
a071005c43 Convert playlist_position to property 2010-02-14 03:54:38 +01:00
Thomas Adamcik
35dc14eee7 Test playlist position handling 2010-02-14 03:48:34 +01:00
Thomas Adamcik
0888fdb320 Test current track handling 2010-02-14 03:47:08 +01:00
Thomas Adamcik
a6e5e5d89d Fix next track test and implementation 2010-02-14 03:39:05 +01:00
Thomas Adamcik
a7571ef6f2 Add prav_track and tests 2010-02-14 03:03:36 +01:00
Thomas Adamcik
eb65afee1b Add next_track and tests 2010-02-14 02:59:59 +01:00
Thomas Adamcik
fb6acfcea5 Move tests/backends/__init__.py to tests/backends/basetests.py 2010-02-13 23:54:05 +01:00
Thomas Adamcik
ca751f868f Comment out test that needs feedback first 2010-02-13 23:23:11 +01:00
Thomas Adamcik
975c066835 Add test_removing_from_empty_playlist 2010-02-13 23:15:24 +01:00
Thomas Adamcik
f839391a59 Add test_removing_track_that_does_not_exist 2010-02-13 23:14:38 +01:00
Thomas Adamcik
151321d200 Update remove test and method to use track instead of position 2010-02-13 23:12:53 +01:00
Thomas Adamcik
2c064059d4 Add test_move_group_outside_of_playlist 2010-02-13 23:10:53 +01:00
Thomas Adamcik
952992d235 Add test_moving_track_outside_of_playlist 2010-02-13 23:09:59 +01:00
Thomas Adamcik
ce5dd2d249 Simplify tests where base state has allready been ensured 2010-02-13 23:08:02 +01:00
Thomas Adamcik
bc5dae5eb7 Split up load state handling tests 2010-02-13 23:06:29 +01:00
Thomas Adamcik
0081f7fd8a Add test to verify that add sets the id property 2010-02-13 22:54:21 +01:00
Thomas Adamcik
b04b1eac19 Fix errornous tests 2010-02-13 22:49:31 +01:00
Thomas Adamcik
4a618079ae Remove uneeded import 2010-02-13 22:46:11 +01:00
Thomas Adamcik
183ff30fa5 Fix test_load_triggers_playing_of_new_playlist 2010-02-13 22:44:50 +01:00
Thomas Adamcik
827305ad00 Handle next at end of playlist properly 2010-02-13 22:36:42 +01:00
Thomas Adamcik
83e8fba854 Add tests that checks that next triggers playback 2010-02-13 22:27:02 +01:00
Thomas Adamcik
6d1a0b3449 Add self.playback to playback tests 2010-02-13 22:26:00 +01:00
Thomas Adamcik
f3d7b54382 Add test that ensures that initial state is stoped 2010-02-13 22:23:28 +01:00
Thomas Adamcik
7c2accf2bc Add test_clear_empty_playlist 2010-02-13 22:05:45 +01:00
Thomas Adamcik
2434408e60 Add get_by_ tests 2010-02-13 21:57:42 +01:00
Thomas Adamcik
4b7da52e3a Move part of test at position to seperate more specific test 2010-02-13 21:41:03 +01:00
Thomas Adamcik
4f5e8b3d51 Add a ton of empty tests that fail 2010-02-13 21:31:15 +01:00
Thomas Adamcik
7ff7c57d55 Update tests to match spec with respect to version handling 2010-02-13 21:21:34 +01:00
Thomas Adamcik
f4f283e741 Move test of precondition for tests to assert in setup 2010-02-13 21:19:04 +01:00
Thomas Adamcik
2f49abcd9c Improve test_remove test 2010-02-13 21:17:01 +01:00
Thomas Adamcik
8aff6a01f5 Reset version when load is called 2010-02-07 20:57:18 +01:00
Thomas Adamcik
6b99572dc8 Increment version for every timeplaylist is set 2010-02-07 20:55:32 +01:00
Thomas Adamcik
ae9c63580e Handle shuffeling of subset 2010-02-07 20:48:34 +01:00
Thomas Adamcik
aafde26643 Add test shuffle and shuffle method 2010-02-07 20:34:43 +01:00
Thomas Adamcik
94017550df Add test remove and remove method 2010-02-07 20:13:27 +01:00
Thomas Adamcik
57cba2c100 Add move group test 2010-02-07 20:09:24 +01:00
Thomas Adamcik
a8d1330343 Add move singe test and implement move function on controller 2010-02-07 20:07:02 +01:00
Thomas Adamcik
f8c29c1dfd Use self.playback in controller test 2010-02-07 19:51:38 +01:00
Thomas Adamcik
968a25c4fd Use self.controller in controller test 2010-02-07 19:50:30 +01:00
Thomas Adamcik
032202ffcb Rewrite populate playlist to decorator 2010-02-07 19:47:46 +01:00
Thomas Adamcik
44446985e3 Add populate playlists to playlist controller test 2010-02-07 19:45:13 +01:00
Thomas Adamcik
0618b85bff Add test for CurrentPlaylistController load and implement on base class 2010-02-07 19:41:50 +01:00
Thomas Adamcik
9993b64983 Test clearing playlist during playback 2010-02-07 19:36:36 +01:00
Thomas Adamcik
79b0c19354 Add test_clear 2010-02-07 19:33:34 +01:00
Thomas Adamcik
b510d8fdae Create populate playlist helper for tests 2010-02-07 19:20:45 +01:00
Thomas Adamcik
e57709b0b4 Update play code and next test 2010-02-07 06:03:57 +01:00
Thomas Adamcik
8b6a5184d8 Update play tests 2010-02-07 06:03:37 +01:00
Thomas Adamcik
4d07666897 Update next test 2010-02-07 05:49:11 +01:00
Thomas Adamcik
baab532cec Try inserting track into postion outside of playlist length 2010-02-07 05:46:50 +01:00
Thomas Adamcik
13bbf608b3 Require at least three files to test 2010-02-07 05:46:01 +01:00
Thomas Adamcik
5c3d10b06c Fix naming in test 2010-02-07 05:33:44 +01:00
Thomas Adamcik
adab4c914d Fix typo in GStreamer test 2010-02-07 05:25:21 +01:00
Thomas Adamcik
5203ecdaf8 Add test to check that uris are set 2010-02-07 05:25:04 +01:00
Thomas Adamcik
10fa84dd1e Add GStreamerCurrentPlaylistHandlerTest 2010-02-07 05:17:42 +01:00
Thomas Adamcik
56cdcde184 Update test to check basic case for playback without current track 2010-02-07 05:09:02 +01:00
Thomas Adamcik
925f1b2191 Add basic gstreamer tests 2010-02-07 04:49:02 +01:00
Thomas Adamcik
8fb7a364d1 Add test for next 2010-02-07 04:34:18 +01:00
Thomas Adamcik
3f0d2028c3 Add basic BasePlaybackControllerTest 2010-02-07 04:32:30 +01:00
Thomas Adamcik
2950984b5a Add basic BaseCurrentPlaylistControllerTest 2010-02-07 04:20:43 +01:00