Commit Graph

2014 Commits

Author SHA1 Message Date
Stein Magnus Jodal
9f71c1533a MPD: Support 'play' without quotes to work with BitMPC 2010-08-13 13:09:03 +02:00
Stein Magnus Jodal
5393407571 MPD: Support 'plchanges' without quotes to work with BitMPC 2010-08-13 13:04:56 +02:00
Stein Magnus Jodal
a3fb8a1f72 MPD: Support 'pause' without args to work with MPDroid 2010-08-13 12:26:34 +02:00
Stein Magnus Jodal
255d70d1ae MPD: Support 'plchanges "-1"' to work better with MPDroid 2010-08-13 12:20:51 +02:00
Stein Magnus Jodal
46177f65f1 Rename mopidy.backends.{gstreamer => local} 2010-08-10 21:45:01 +02:00
Stein Magnus Jodal
d0aac71cfb MPD: Split protocol implementation into 11 modules 2010-08-10 02:08:59 +02:00
Stein Magnus Jodal
b4c91af7d7 Relocate MPD frontend to 'mopidy.frontends.mpd' 2010-08-09 21:17:36 +02:00
Stein Magnus Jodal
3339fb7de0 Fix 'play/playid "-1"' behaviour when playlist is empty 2010-08-09 20:44:01 +02:00
Stein Magnus Jodal
d2aa7c9d21 Fix formatting 2010-08-09 12:20:59 +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
96ac806d8f Remove Track.id field 2010-08-08 17:17:38 +02:00
Stein Magnus Jodal
22b6a3df8b Remove Track.id usage in Gstreamer backend 2010-08-08 17:15:47 +02:00
Stein Magnus Jodal
8c1e5d5c69 Remove Track.id usage in MPD tests 2010-08-08 17:14:07 +02:00
Johannes Knutsen
dc7353694b Merge branch 'master' of git://github.com/jodal/mopidy 2010-08-05 18:49:37 +02:00
Stein Magnus Jodal
1cfddf3d90 Ready for v0.1.0a4 development 2010-08-03 14:55:08 +02:00
Stein Magnus Jodal
c83ac35758 MPD: Add more docs and tests to 'playlistsearch' 2010-08-03 09:07:33 +02:00
Stein Magnus Jodal
999de87d07 MPD: Use CPID in 'plchangesposid' output 2010-08-02 23:02:51 +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
44309345db Update 'addid' to return CPID instead of GID 2010-08-02 14:27:57 +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
b4c80fdc2f tests: Remove unused imports 2010-07-31 20:21:36 +02:00
Stein Magnus Jodal
04304dafd8 tests: Split mpd/frontend_test into 11 files 2010-07-31 20:19:24 +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
15f1ada66b removed print statement from test 2010-07-26 17:51:38 +02:00
Johannes Knutsen
4236b8b58b removed wrongly commited swo file 2010-07-26 17:50:47 +02:00
Johannes Knutsen
be949d45df merge implementation of multi-word search 2010-07-26 10:48:30 +02:00
Johannes Knutsen
9c08f54514 implemented multi-word search by making a query as a list of (field, what)-tuples. 2010-07-26 10:44:21 +02:00
Stein Magnus Jodal
affd1799d6 Use CPID in MPD formats.
This makes it possible to handle multiple identical songs in the same
playlist.
2010-07-01 03:15:43 +02:00
Stein Magnus Jodal
8c3d3603e2 Add lookup by CPID to CurrentPlaylistController.get() 2010-07-01 01:54:11 +02:00
Stein Magnus Jodal
d65c76c528 Merge branch 'master' into cpc 2010-07-01 01:03:35 +02:00
Stein Magnus Jodal
dd494107d3 Extract mpd_format from models to mopidy.mpd.serializers 2010-07-01 00:39:50 +02:00
Stein Magnus Jodal
e6843e8b4d CurrentPlaylistController.tracks is now read-only 2010-06-30 23:47:18 +02:00
Stein Magnus Jodal
6005086a7f Merge remote branch 'klette/master' 2010-06-30 23:42:15 +02:00
Stein Magnus Jodal
5916646eca Format IP address to bind to according to available protocol family 2010-06-30 21:50:49 +02:00
Kristian Klette
699385b613 Support list album artist "someartist" 2010-06-30 20:40:20 +02:00
Kristian
7922795d2f Return OK on noidle 2010-06-30 20:08:53 +02:00
Stein Magnus Jodal
81503df2ad Merge branch 'master' into cpc 2010-06-30 12:45:01 +02:00
Stein Magnus Jodal
b3bff400e6 MPD: Accept list without quotes around field arg 2010-06-30 12:44:46 +02:00
Stein Magnus Jodal
1e0a5e5bb3 CurrentPlaylistController.load() reuse add() logic 2010-06-30 00:31:49 +02:00
Stein Magnus Jodal
93b606af3e Fix tests broken by the two previous cherry-picked commits 2010-06-30 00:23:28 +02:00
Stein Magnus Jodal
4ba30f80e4 CurrentPlaylistController.load() takes a list of tracks instead of a Playlist object 2010-06-29 23:53:52 +02:00
Stein Magnus Jodal
770e1fa85e Don't use GStreamer's fakesink, since two tests fails using it 2010-06-28 23:27:52 +02:00
Stein Magnus Jodal
4e29754ce6 Remove 'ack' command added by Mopidy 2010-06-24 20:00:58 +02:00
Stein Magnus Jodal
1aa5963697 MPD: Add correct index to error message when error happens while processing a command list 2010-06-24 19:59:21 +02:00
Stein Magnus Jodal
95f83c8102 Rename MpdAckError.position to MAE.index 2010-06-24 19:57:06 +02:00
Stein Magnus Jodal
d093e498d8 'command_list_end' before 'command_list_start' now returns 'unknown command' error instead of crashing 2010-06-24 19:47:44 +02:00
Stein Magnus Jodal
873e387618 Temporarily disable GStreamer tests for Win32 2010-06-24 18:13:51 +02:00
Stein Magnus Jodal
a8672eb87b MPD: Remove some commands from the 'commands' output, as MPD does not list them and GMPC fails if 'idle' is present in the list 2010-06-24 12:55:49 +02:00
Stein Magnus Jodal
bcc133a079 MPD: More correct date format in listplaylists output 2010-06-24 12:50:59 +02:00
Stein Magnus Jodal
2f9775250a Return 'incorrect arguments' instead of 'unknown command' for known commands that don't match any patterns 2010-06-23 22:53:27 +02:00
Stein Magnus Jodal
af30db91e1 Update all MpdAckErrors thrown by request handlers. Three tests intentionally left failing. 2010-06-23 22:23:42 +02:00
Stein Magnus Jodal
a234d41d77 MPD-compliant ACK error messages
Started work on MPD-compliant ACK error messages. 14 tests are
intentionally left broken.
2010-06-22 23:52:35 +02:00
Stein Magnus Jodal
11b8ab89c9 Fix support for IPv4 addresses in SERVER_HOSTNAME which was broken by new IPv6 support 2010-06-20 23:00:52 +02:00
Stein Magnus Jodal
3c3d2728ad MPD: Don't crash when receiving invalid data 2010-06-20 21:51:15 +02:00
Stein Magnus Jodal
d00c47ec88 MPD: Implement 'commands' command 2010-06-20 21:25:46 +02:00
Stein Magnus Jodal
f2547199a0 Gstreamer tests: use fakesink for audio output 2010-06-16 22:07:35 +02:00
Stein Magnus Jodal
a9923fcb23 Merge remote branch 'adamcik/gstreamer'
Conflicts:
	mopidy/mpd/frontend.py
	tests/mpd/frontend_test.py

GstreamerBackend now raises LookupError where the other backends just
returns None. We'll probably move in the direction of using LookupError
all over, but the changes to DummyBackend and generic tests was reverted
until BaseBackend, the backend API docs and the other backends are
updated to all raise LookupError.
2010-06-06 22:15:25 +02:00
Stein Magnus Jodal
d135066b0d addid should ACK, and not crash or be silent on error conditions 2010-06-06 22:04:50 +02:00
Stein Magnus Jodal
6623007448 Ready for 0.1.0a3 development 2010-06-02 21:45:22 +02:00
Thomas Adamcik
98f2f67663 Library needs to set id 2010-05-06 00:50:22 +02:00
Thomas Adamcik
e0ffd7e7a1 Add test_add_uri_that_triggers_lookup_error 2010-05-06 00:11:23 +02:00
Thomas Adamcik
c8b3c91c7c Test that playlistinfo -1 == playlistinfo and add FIXMEs for rest of playlistinfo tests 2010-05-05 23:55:28 +02:00
Thomas Adamcik
bfd34eb9e0 Fix gstreamer stored playlist controller with respect to tracks that don't exist in library (and test stub for issue) 2010-05-05 23:05:22 +02:00
Thomas Adamcik
8875e054d0 Rename MUSIC_FOLDER, PLAYLIST_FOLDER and TAG_CACHE with LOCAL_ prefix 2010-05-05 20:28:51 +02:00
Thomas Adamcik
65c8dbc906 Fix tests with respect to dependecies between backends 2010-05-05 20:16:41 +02:00
Stein Magnus Jodal
c8b6e4728d MPD: Handle 'play "-1"' in same way as 'playid "-1"' 2010-05-05 14:37:58 +02:00
Stein Magnus Jodal
b408751520 MPD: Handle 'lsinfo ""' in the same way as 'lsinfo' and 'lsinfo "/"' 2010-05-05 12:54:49 +02:00
Stein Magnus Jodal
5449374fa2 Ready for 0.1.0a2 development 2010-05-04 22:23:15 +02:00
Stein Magnus Jodal
3047aeb14a Merge remote branch 'adamcik/gstreamer' 2010-05-04 00:27:02 +02:00
Stein Magnus Jodal
d70d60deed Add deactivated integration tests for DespotifyBackend and LibspotifyBackend 2010-05-03 23:17:52 +02:00
Stein Magnus Jodal
39959a6edf Rename playlist_position to current_playlist_position 2010-05-03 22:52:49 +02:00
Stein Magnus Jodal
5638604a07 Remove backend.playback.volume in preference of backend.mixer.volume 2010-05-03 22:38:21 +02:00
Thomas Adamcik
eba3dd7c6d Windows won't let you open a NamedTemporartFile while it is still open 2010-05-02 13:40:42 +02:00
Thomas Adamcik
ce8f88954c Another windows file path adjustment 2010-05-02 02:25:38 +02:00
Thomas Adamcik
adb8304c67 Try to fix path_to_uri for windows 2010-05-02 02:21:04 +02:00
Thomas Adamcik
d873fd62de pylint tests written for gstreamer 2010-05-01 21:53:52 +02:00
Thomas Adamcik
d757d6a0ec Simplify tag cache return values 2010-05-01 21:28:56 +02:00
Thomas Adamcik
590aea4b89 Add FIXME and correct test class name 2010-05-01 21:03:51 +02:00
Thomas Adamcik
3c9ff6b13f Rename get_or_create_dotdir to get_or_create_folder and add tests 2010-05-01 21:03:11 +02:00
Thomas Adamcik
9bf1ecede8 Deploy path_to_uri all over 2010-05-01 20:31:00 +02:00
Thomas Adamcik
5cabd1c255 Unicode tests for PathToFileURITest 2010-05-01 20:10:12 +02:00
Thomas Adamcik
0186bd81db Expand path_to_uri functionality 2010-05-01 19:56:03 +02:00
Thomas Adamcik
03a453eb64 Add path_to_uri in utils 2010-05-01 19:48:05 +02:00
Thomas Adamcik
e1c40fbc0b Rollback skipping gstreamer tests on windows 2010-05-01 17:22:22 +02:00
Thomas Adamcik
cf8584c769 Rename some tests classes, ie. s/Backend// 2010-05-01 17:20:25 +02:00
Thomas Adamcik
2b743e4157 Skip gstreamer tests on windows 2010-05-01 17:19:56 +02:00
Stein Magnus Jodal
59ada1bb28 Merge tests/backends/get_test into tests/backends/base 2010-05-01 14:55:05 +02:00
Stein Magnus Jodal
eac8015970 Use assertEqual without 's' all over 2010-05-01 14:47:41 +02:00
Stein Magnus Jodal
cf1fbda387 Fix more pylint violations 2010-05-01 11:46:59 +02:00
Thomas Adamcik
7773e8eba3 Test and impl. search in library 2010-04-30 22:25:19 +02:00
Thomas Adamcik
d5b80c7885 Test and implement library.find_exact 2010-04-30 21:57:01 +02:00
Thomas Adamcik
f1453732dc Find exact with no hits test and impl. 2010-04-30 21:13:32 +02:00
Thomas Adamcik
c66c63c671 Forgot to add library tag cache 2010-04-30 20:59:51 +02:00
Thomas Adamcik
d8b6d216d3 Update m3u parser to handle missing files better 2010-04-30 20:56:27 +02:00
Thomas Adamcik
fa362ce936 Handle missing tag cache better 2010-04-30 20:46:30 +02:00
Thomas Adamcik
437f7fb6e7 Add lookup tests for library 2010-04-30 20:42:08 +02:00
Thomas Adamcik
14f7bc0591 Add placeholder URItoM3UTest for when persistence is moved back to util class 2010-04-30 20:05:39 +02:00
Thomas Adamcik
b84c9e3eff Add test for minimal 'blank' tag_cache 2010-04-30 19:51:49 +02:00
Thomas Adamcik
9e798916bd Convert gstreamer_test to use data folder helper 2010-04-29 22:51:18 +02:00
Thomas Adamcik
5e79c8a1f1 Move data folder helper to tests module 2010-04-29 22:49:28 +02:00
Thomas Adamcik
3bc9a0a60c Update library tests 2010-04-29 22:20:18 +02:00
Thomas Adamcik
7183cfd561 More placeholders for tests 2010-04-29 22:09:55 +02:00
Thomas Adamcik
0553c804f2 Fix trailing whitespace 2010-04-29 21:59:52 +02:00
Thomas Adamcik
c612edd205 Merge branch 'master' into gstreamer 2010-04-29 21:11:42 +02:00
Thomas Adamcik
1da9dced77 Ensure that models don't accept unknown kwarg keys 2010-04-29 21:09:17 +02:00
Thomas Adamcik
53bc3cec6a Ensure the files don't exist before in playlist tests 2010-04-29 20:03:08 +02:00
Thomas Adamcik
a0fae47e90 Ensure that renamed playlists aren't created 2010-04-29 20:01:35 +02:00
Thomas Adamcik
42e96ebdcd Add placeholders for library tests 2010-04-28 23:04:39 +02:00
Thomas Adamcik
074da2e542 Add minimal BaseLibraryControllerTest 2010-04-28 22:56:10 +02:00
Thomas Adamcik
5f08dbc213 Add extra settings for music folder and tag cache 2010-04-28 22:53:42 +02:00
Thomas Adamcik
15751613a1 Add some test stubs for mpd cache handling 2010-04-28 22:41:37 +02:00
Thomas Adamcik
837f35ef36 Add advanced tag cache test 2010-04-28 22:31:08 +02:00
Thomas Adamcik
b6340d107b Clean mpd tag cache tests 2010-04-28 22:30:26 +02:00
Thomas Adamcik
853af8a492 Add fixme and test stub for playlist eq and hash testing 2010-04-28 22:09:30 +02:00
Thomas Adamcik
f36f64c6ca Add basic mpd tag cache parser and tests 2010-04-28 22:02:01 +02:00
Thomas Adamcik
7158056c26 Test id() for equality, not playlists them selves due to eq changes 2010-04-28 21:57:53 +02:00
Thomas Adamcik
db4ad72678 Fix test_artists test with respect to hashing and set behaveviour 2010-04-28 21:53:51 +02:00
Thomas Adamcik
64f81a6594 Add test_eq_other check 2010-04-28 21:51:19 +02:00
Thomas Adamcik
1d3a394d03 «Hashable objects which compare equal must have the same hash value» ie. add hash tests for eq 2010-04-28 21:36:13 +02:00
Thomas Adamcik
69e6d5dc92 Add test for equality with ordering changes of artists 2010-04-27 23:25:35 +02:00
Thomas Adamcik
b24d883db9 Test comparing with None 2010-04-27 23:15:33 +02:00
Thomas Adamcik
f8b2d52333 Add __eq__ to Track 2010-04-27 23:12:24 +02:00
Thomas Adamcik
3bc795ee95 Add __eq__ to album 2010-04-27 22:55:36 +02:00
Thomas Adamcik
06d6fd81c7 Add __eq__ to Artist 2010-04-27 22:47:35 +02:00
Thomas Adamcik
d64980411d Rename m3u conversion helper to parse_m3u 2010-04-27 21:39:52 +02:00
Thomas Adamcik
c93d8470ce Substitute file: with file:// all over 2010-04-27 20:03:00 +02:00
Thomas Adamcik
d24a81425c Convert uri handler to file:// 2010-04-27 20:02:08 +02:00
Stein Magnus Jodal
cf0986a3a0 Add test to ensure that the last track in a playlist also is consumed 2010-04-27 15:27:58 +02:00
Thomas Adamcik
edc2eb0760 Merge branch 'master' into gstreamer
Conflicts:
	tests/backends/gstreamer_test.py
2010-04-27 00:10:03 +02:00
Thomas Adamcik
80879f9f86 Add more test stubs 2010-04-27 00:06:25 +02:00
Thomas Adamcik
32dcabafc3 Load tracks when stored playlist is initialised 2010-04-27 00:02:57 +02:00
Thomas Adamcik
f9bc9a44b1 Replace FIXME with test stub 2010-04-26 23:46:48 +02:00
Thomas Adamcik
2f4cea2339 Add test_playlist_contents_get_written_to_disk test 2010-04-26 23:43:06 +02:00
Thomas Adamcik
d522415757 Placeholder test_santitising_of_playlist_filenames 2010-04-26 23:27:47 +02:00
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
ce3d23f8cc Add m3u tests 2010-04-26 22:29:21 +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
Thomas Adamcik
b7aab827d6 Add alternativ test files 2010-04-13 09:53:25 +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
8b1f85b576 Merge branch 'master' into gstreamer 2010-04-07 02:57:36 +02:00
Thomas Adamcik
bc09acf8c6 Refactor DenonMixerTest to use new BaseMixerTest 2010-04-07 02:57:17 +02:00
Thomas Adamcik
660e21971c Clean BaseMixerTest 2010-04-07 02:52:35 +02:00
Thomas Adamcik
051d2d7dac Clean DenonMixerTest 2010-04-07 02:49:22 +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
Stein Magnus Jodal
04b6535d95 Ready for 0.1.0a1 development 2010-04-06 22:39:30 +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
ef3906c1d6 Setup logger to log to test.log for all tests 2010-04-06 15:00:24 +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
332d917b53 Update frontend to match CPC.get() changes 2010-03-31 23:44:17 +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
34ebdaf8de Update frontend to use new SPLC.get() 2010-03-31 23:30:27 +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
7039031161 Update frontend to use new BaseCurrentPlaylistController.get() 2010-03-31 20:49:58 +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
Johannes Knutsen
5a9b141657 set current_track to None on clear commands - required by Sonata 2010-03-30 02:34:58 +02:00
Johannes Knutsen
818e602221 handle gmpc issuing playid "-1" after playlst replacement 2010-03-30 01:59:34 +02:00
Johannes Knutsen
ecfd774e64 test find album "what" artist "what" command 2010-03-30 01:29:07 +02:00
Stein Magnus Jodal
bcd9fd66e8 Use index to get KeyError message instead of unicode() as its behaviour varies between Solaris/Py2.6.5 and Ubuntu/Py2.6.4 2010-03-29 20:56:29 +02:00
Stein Magnus Jodal
61dadc02b6 Add MopidyException base exception 2010-03-29 20:55:33 +02:00
Stein Magnus Jodal
1498c2cbba Try to fix exception message handling on Solaris and/or Python 2.6.5 2010-03-29 20:29:07 +02:00
Stein Magnus Jodal
f2e5708ada Make version number adhere to distutils.version.StrictVersion rules 2010-03-27 00:09:26 +01: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
bf05602318 Add support for 'playlistfind filename ...' 2010-03-22 22:09:00 +01:00
Stein Magnus Jodal
432d70ff51 Remove unused imports 2010-03-20 16:50:18 +01:00
Stein Magnus Jodal
4c58d3b773 Fix tests 2010-03-20 02:49:10 +01:00
Stein Magnus Jodal
6a2e7e2e73 Add support for negative songpos arg in 'playlistinfo' as used by ncmpc 2010-03-14 23:18:03 +01:00
Stein Magnus Jodal
1729d9e962 Use 2^31 - 1 instead of 2^31 to keep inside 32-bit integer (good I'm varying what platforms I work at) 2010-03-13 00:37:34 +01:00
Stein Magnus Jodal
9437db3c38 DenonMixer: Add readline() method to mock 2010-03-13 00:35:37 +01:00
Kristian
631983a14f Update denon device mock to reflect mixer changes 2010-03-10 19:29:54 +01:00
Kristian
9e411e4de3 External mixers dont have undefined volume 2010-03-10 19:27:57 +01:00
Kristian
867c8fbc50 Added reading of volume from Denon devices that support it, and reopen socket if needed 2010-03-10 13:16:56 +01:00
Kristian
e96751aa46 Added Denon mixer support 2010-03-10 12:43:11 +01:00
Stein Magnus Jodal
38399c844b Update tests to check for 'OK' from 'idle' calls 2010-03-09 00:16:20 +01:00
Stein Magnus Jodal
38992bcf9c Move MPD exceptions into mopidy.mpd 2010-03-08 20:37:03 +01:00
Stein Magnus Jodal
523216d0fd Add mixer API and rewrite ALSA mixer hack 2010-03-07 23:48:50 +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
Stein Magnus Jodal
7838d7ceb5 Fix 'urlhandlers' output 2010-03-07 21:11:34 +01:00
Stein Magnus Jodal
290f3adc14 Add tests for 'find' and 'search' without quotes 2010-03-07 19:52:47 +01:00
Stein Magnus Jodal
bc1167ba06 Return 'positive' but empty results on 'count' and 'list' 2010-03-07 19:27:13 +01:00
Stein Magnus Jodal
04ceb83c94 Implement _playback_single and add 'single' field to BasePlaybackController 2010-02-28 23:22:12 +01:00
Stein Magnus Jodal
2d2e7c2488 Implement _playback_repeat 2010-02-28 23:18:35 +01:00
Stein Magnus Jodal
ede1b7d5ab Implement _playback_random 2010-02-28 23:17:45 +01:00
Stein Magnus Jodal
68810d01b7 Implement _playback_consume 2010-02-28 23:16:06 +01:00
Stein Magnus Jodal
d0916334d4 Implement _current_playlist_swapid 2010-02-28 23:10:54 +01:00
Stein Magnus Jodal
b89a6fc46d Implement _current_playlist_swap 2010-02-28 23:07:44 +01:00
Stein Magnus Jodal
c8ee771ebc Implement _current_playlist_shuffle 2010-02-28 22:56:42 +01:00
Stein Magnus Jodal
1a7fbe671b Implement _current_playlist_plchangesposid 2010-02-28 22:26:18 +01:00
Stein Magnus Jodal
e3b407c709 Implement _current_playlist_playlistid when songid argument is given 2010-02-28 22:15:15 +01:00
Stein Magnus Jodal
2dea0820b2 Rename Track.title to Track.name 2010-02-28 22:00:19 +01:00
Stein Magnus Jodal
3180d7faf2 Implement _current_playlist_moveid 2010-02-28 21:15:01 +01:00
Stein Magnus Jodal
00472ca1bc Implement _current_playlist_move_{range,songpos} 2010-02-28 21:10:53 +01:00
Stein Magnus Jodal
434fbb8853 Add 'Last-Modified' field to _stored_playlists_listplaylists response 2010-02-28 20:07:11 +01:00
Stein Magnus Jodal
6dfb658e6b Add last_modified field to Playlist model 2010-02-28 18:58:33 +01:00
Stein Magnus Jodal
9846f7a738 Split _current_playlist_delete into a method for songpos and a method for ranges 2010-02-28 17:41:10 +01:00
Stein Magnus Jodal
6c538ba947 Add extra asserts to _current_playlist_deleteid tests 2010-02-28 17:14:29 +01:00
Stein Magnus Jodal
7e94f69e6e Implement _current_playlist_clear 2010-02-28 17:09:28 +01:00
Stein Magnus Jodal
54f538555c Implement _current_playlist_addid 2010-02-28 17:05:43 +01:00
Stein Magnus Jodal
71fc316709 Implement _current_playlist_add 2010-02-28 16:57:16 +01:00
Stein Magnus Jodal
3dedb8ced3 Implement _current_playlist_delete 2010-02-28 16:46:39 +01:00
Stein Magnus Jodal
93e5a417e5 Add 'elapsed' to 'status' output and increase MPD protocol version to 0.16.0 2010-02-28 16:27:18 +01:00
Stein Magnus Jodal
d62ea93231 Rename internal MpdHandler methods to include MPD protocol section 2010-02-28 15:23:25 +01:00
Stein Magnus Jodal
1b9231d384 Update tests to match changes from knutz3n 2010-02-28 13:43:40 +01:00
Stein Magnus Jodal
e61ce61741 Implement MpdHandler.find_exact() 2010-02-24 08:40:28 +01:00
Stein Magnus Jodal
635adabb7f Add test for 'noidle' 2010-02-23 19:48:27 +01:00
Stein Magnus Jodal
ca7152d62c Implement and test 'listplaylist' and 'listplaylistinfo' 2010-02-23 19:47:22 +01:00
Stein Magnus Jodal
31a05e6518 Update test after decorator rename 2010-02-22 23:33:10 +01:00
Stein Magnus Jodal
0a6545f6d0 Add volume control support to BaseBackend through alsaaudio.Mixer 2010-02-22 19:47:25 +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
45af7ef21e Merge branch 'master' of git://github.com/jodal/mopidy 2010-02-20 00:14:23 +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
e9d3c8334e Add blank mp3 files for testing 2010-02-18 02:42:31 +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
Stein Magnus Jodal
59f1307d83 Update 'currentsong' test 2010-02-15 23:22:37 +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
Stein Magnus Jodal
4e16e403d2 Test behaviour when errors happens during command_list processing 2010-02-14 01:54:03 +01:00
Stein Magnus Jodal
39c44bfed6 Update tests for 'deleteid' 2010-02-14 01:47:42 +01:00
Stein Magnus Jodal
afa107f31d Add empty handlers for sticker commands 2010-02-14 01:43:00 +01:00
Stein Magnus Jodal
328191d657 Add some missing MPD commands 2010-02-14 01:20:54 +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
f03a8238b1 Merge branch 'master' of git://github.com/jodal/mopidy 2010-02-13 20:56:42 +01:00
Stein Magnus Jodal
01a6751ce6 Add support for 'outputs' MPD command 2010-02-13 20:11:42 +01:00
Stein Magnus Jodal
552b3ac723 Fix tests and coverage for track status output 2010-02-13 19:58:19 +01:00
Stein Magnus Jodal
837e7c361c Test that all model fields are immutable 2010-02-13 14:43:28 +01:00
Stein Magnus Jodal
81c7f56b5b Add tests for mopidy.models 2010-02-13 14:10:30 +01:00
Stein Magnus Jodal
e3e5f0c9bb Add tests to get full test coverage of MpdHandler 2010-02-12 23:33:28 +01:00
Stein Magnus Jodal
80b1f377b6 Fix broken MpdHandler tests 2010-02-12 22:59:59 +01:00
Stein Magnus Jodal
13819b62b3 Test full currentsong output 2010-02-08 00:20:25 +01:00
Stein Magnus Jodal
46af63ab7e Update MpdHandler to use new backend API 2010-02-08 00:12:05 +01:00
Thomas Adamcik
6375a246a1 Merge branch 'master' into gstreamer 2010-02-07 21:10:31 +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
c5e5e9215e Turn tests into module 2010-02-07 04:48:34 +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
Stein Magnus Jodal
20e360131f Replace some backend properties with plain fields. Fix failing tests. 2010-01-31 14:38:06 +01:00
Stein Magnus Jodal
230c3af3cb Move MPD stuff to mopidy.mpd 2010-01-31 13:03:50 +01:00
Stein Magnus Jodal
e47d7491eb Update tests to match new code 2009-12-26 16:11:07 +01:00
Stein Magnus Jodal
09eb18e3e3 Add missing "-s to command patterns 2009-12-26 06:09:25 +01:00
Stein Magnus Jodal
077f13a5dd Add tracking of time position in track 2009-12-26 05:08:51 +01:00
Stein Magnus Jodal
1f967b3213 Add 'play' command which starts the last played track 2009-12-26 04:02:59 +01:00
Johannes Knutsen
9cec5ef768 corrected tests to ensure OK is sent on search 2009-12-26 04:01:53 +01:00
Johannes Knutsen
30c4131841 Updated tests to assume implemented methods 2009-12-26 03:55:36 +01:00
Stein Magnus Jodal
7a96672f0e Return 'ACK Not implemented' instead of 'OK' for unimplemented commands 2009-12-26 03:46:54 +01:00
Stein Magnus Jodal
46bc8798f8 Move most of handle_response from session to handler 2009-12-26 03:20:45 +01:00
Stein Magnus Jodal
814eb98b83 Add command_list_ok_begin support, ack exceptions 2009-12-26 02:44:32 +01:00
Johannes Knutsen
8bd6d5092e added song and songid to status and handling of prev/next commands 2009-12-26 02:21:47 +01:00
Stein Magnus Jodal
c4aef48915 Return dict from _update() 2009-12-25 22:23:20 +01:00
Stein Magnus Jodal
13f0cea299 Test that playback commands change the play state 2009-12-25 21:46:59 +01:00
Stein Magnus Jodal
08a095530f Add 'pause' support to Spotify backend 2009-12-25 21:38:25 +01:00
Johannes Knutsen
73dae615a4 added command list tests 2009-12-25 21:01:03 +01:00
Stein Magnus Jodal
71d935cbee Fix search command pattern 2009-12-25 20:02:20 +01:00
Stein Magnus Jodal
c5f6c4c2a6 Add test for 'lsinfo' command 2009-12-25 17:20:42 +01:00
Johannes Knutsen
daaa35052f Added double quoting in arguments to tests 2009-12-25 16:19:20 +01:00
Stein Magnus Jodal
256e5e685a Move instantiation of backend from handler to server as the same backend should be used for multiple (simultaneous) sessions 2009-12-25 15:54:44 +01:00
Stein Magnus Jodal
3f41fc8df7 Add 'urlhandler' command 2009-12-25 15:37:25 +01:00
Stein Magnus Jodal
5c64a39ad4 Add empty handlers for music database commands 2009-12-25 15:24:47 +01:00
Johannes Knutsen
f15967bcf3 added double-quotes on playlistinfo argument 2009-12-25 14:43:52 +01:00
Stein Magnus Jodal
8b29170c9b Unbreak tests. Update some message formats to match Sonata. 2009-12-24 03:40:33 +01:00
Stein Magnus Jodal
6ee09cb7b7 Handle empty requests like old MPD 2009-12-24 03:15:39 +01:00
Stein Magnus Jodal
9dcb2dcbfa Implement 'kill' 2009-12-24 03:10:32 +01:00
Stein Magnus Jodal
d4399b43de Fix broken test 2009-12-24 02:57:44 +01:00
Stein Magnus Jodal
2d33a191d5 Implement 'close' 2009-12-24 02:56:21 +01:00
Stein Magnus Jodal
4f438a0738 Add empty handlers for connection handling 2009-12-24 02:43:13 +01:00
Stein Magnus Jodal
8ddb3554ba Add empty handlers for handling of the saved playlists 2009-12-24 02:33:15 +01:00
Stein Magnus Jodal
ec048bdd99 Add empty handlers for handling of the current playlist 2009-12-24 02:13:13 +01:00
Stein Magnus Jodal
9e46ab48da Add empty handlers for the majority of the MPD protocol 2009-12-24 01:13:40 +01:00
Stein Magnus Jodal
f0afb45394 Add support for returning dicts from handlers 2009-12-23 23:24:00 +01:00
Stein Magnus Jodal
80f900134b Test mopidy.handler 2009-12-23 23:06:16 +01:00
Stein Magnus Jodal
7fa3d5a509 Update how to install test dependencies 2009-12-23 22:51:07 +01:00
Stein Magnus Jodal
47d0949666 Add framework for testing 2009-12-23 22:15:53 +01:00