Commit Graph

2014 Commits

Author SHA1 Message Date
Stein Magnus Jodal
42981b94b6 tests: dict comp. is not supported in Python 2.6 2012-11-25 22:16:46 +01:00
Stein Magnus Jodal
7d047acc2e Merge branch 'develop' into feature/http-frontend 2012-11-25 22:04:53 +01:00
Stein Magnus Jodal
160626b364 jsonrpc: Give explicit error if calling method without object path 2012-11-25 21:51:59 +01:00
Stein Magnus Jodal
8f604204da jsonrpc: Don't allow objects at the root 2012-11-25 21:42:28 +01:00
Stein Magnus Jodal
50814d3929 jsonrpc: Explain why a method wasn't found 2012-11-25 21:23:55 +01:00
Stein Magnus Jodal
609fdc46ca jsonrpc: Explain why call to private method failed 2012-11-25 21:13:55 +01:00
Stein Magnus Jodal
7f987cb1e2 jsonrpc: Lookup methods using the objects map directly 2012-11-25 20:36:04 +01:00
Stein Magnus Jodal
66d76d38b3 http: Unbreak tests 2012-11-25 09:12:22 +01:00
Stein Magnus Jodal
90663021a4 Merge branch 'feature/json-rpc' into feature/http-frontend 2012-11-25 08:39:20 +01:00
Stein Magnus Jodal
40f4a8181d jsonrpc: Wrapper takes a mapping between mounts and objects
This is analogous to how the inspector takes a mapping between mounts and
classes.
2012-11-25 08:03:26 +01:00
Stein Magnus Jodal
569ee6c5f3 jsonrpc: Add inspector that describes the available API 2012-11-24 00:57:08 +01:00
Stein Magnus Jodal
61d6de2378 jsonrpc: Support methods on the root object 2012-11-22 15:30:34 +01:00
Stein Magnus Jodal
6e2ffb0820 jsonrpc: Make dict returns from plain objects work 2012-11-22 12:11:22 +01:00
Stein Magnus Jodal
b038c4c2db Add generic JSON-RPC 2.0 object wrapper
This can wrap multiple objects, which can be both plain objects and Pykka
actors. To my knowledge, everything in the spec is supported.
2012-11-21 23:51:05 +01:00
Stein Magnus Jodal
db5c671bd4 http: Remove the REST API 2012-11-21 02:10:32 +01:00
Stein Magnus Jodal
532a915db8 Merge branch 'develop' into feature/http-frontend 2012-11-21 02:02:58 +01:00
Stein Magnus Jodal
88eef7de49 Bump version number to 0.9.0 2012-11-21 01:42:51 +01:00
Stein Magnus Jodal
3af3eb5127 mpd: Make 'decoders' return an empty response to please ncmpcpp 2012-11-21 01:29:14 +01:00
Stein Magnus Jodal
39b9429dfc tests: Use track URIs matching the backend in use 2012-11-21 01:04:11 +01:00
Stein Magnus Jodal
dc24876f66 mpd: Allow bad 'search' requests 2012-11-21 00:49:11 +01:00
Stein Magnus Jodal
5fbb6328d6 mpd: list shouldn't return blank artist names, album names, or dates 2012-11-21 00:48:08 +01:00
Stein Magnus Jodal
72574c1ae0 mpd: listplaylists should not return playlists without a name 2012-11-21 00:32:46 +01:00
Stein Magnus Jodal
8f1b98b306 core: Don't fail when adding tracks after end of tracklist 2012-11-20 22:36:39 +01:00
Stein Magnus Jodal
ae9a257091 Make tracklist.add() only take and return lists 2012-11-20 22:12:09 +01:00
Stein Magnus Jodal
1ed56c9ed7 Use tracklist.add() instead of tracklist.append() 2012-11-20 21:55:51 +01:00
Stein Magnus Jodal
d107b13fcb core: Remove playback.current_tlid 2012-11-20 21:48:19 +01:00
Stein Magnus Jodal
2f27167677 core: Remove playback.track_at_previous 2012-11-20 21:48:03 +01:00
Stein Magnus Jodal
70d4dba7aa core: Remove playback.track_at_next 2012-11-20 21:47:44 +01:00
Stein Magnus Jodal
ee8c2ca589 tests: Rename populate_playlist() to populate_tracklist() 2012-11-20 09:24:37 +01:00
Stein Magnus Jodal
bec91284be mpd: Allow bad 'find' requests 2012-11-20 00:38:53 +01:00
Stein Magnus Jodal
7da2058b65 mpd: Test response for bad 'list' requests 2012-11-20 00:31:41 +01:00
Stein Magnus Jodal
56c4892f46 Merge branch 'develop' into feature/http-frontend 2012-11-20 00:27:19 +01:00
Stein Magnus Jodal
f82d3fca39 Merge branch 'feature/model-serialization' into develop 2012-11-20 00:21:34 +01:00
Stein Magnus Jodal
8c6f04a408 models: Change serialized type marker from '__type__' to '__model__' 2012-11-20 00:21:26 +01:00
Stein Magnus Jodal
693a3d3ec6 models: Model creation with kwarg matching method name should fail 2012-11-19 23:58:16 +01:00
Stein Magnus Jodal
34d444e563 models: Don't allow model deserialization to override methods 2012-11-19 23:35:05 +01:00
Stein Magnus Jodal
eab399357f Make library.lookup() return a list of tracks 2012-11-19 21:09:10 +01:00
Stein Magnus Jodal
32639ea8de Replace {tracklist,playlists}.get() with .filter() which always returns a list 2012-11-19 21:09:10 +01:00
Stein Magnus Jodal
3bd9d2096f tests: Formatting 2012-11-19 21:09:10 +01:00
Stein Magnus Jodal
7df556c9b3 Return lists of tracks from search() and find_exact() 2012-11-19 18:13:14 +01:00
Stein Magnus Jodal
6f0919bda8 style: Fix flake8 warnings 2012-11-19 18:01:31 +01:00
Stein Magnus Jodal
968de84b93 http: Broadcast all events over the WebSocket 2012-11-18 19:02:36 +01:00
Stein Magnus Jodal
62530be8b4 Merge branch 'feature/model-serialization' into feature/http-frontend 2012-11-18 17:31:13 +01:00
Stein Magnus Jodal
3bc4126b45 models: Fix TlTrack deserialization 2012-11-18 17:28:37 +01:00
Stein Magnus Jodal
68e4b207cb models: Support automatic serialization to and deserialization from JSON 2012-11-18 16:53:26 +01:00
Stein Magnus Jodal
f237736f87 models: Add '__type__' attribute to serialized models 2012-11-18 16:53:09 +01:00
Stein Magnus Jodal
74a6589668 tests: Fix typo in class name 2012-11-18 16:51:33 +01:00
Stein Magnus Jodal
7e3fba0155 Merge branch 'develop' into feature/http-frontend 2012-11-18 09:45:44 +01:00
Stein Magnus Jodal
59919b279c Merge pull request #244 from jodal/feature/mpris-playlists
mpris: Implement the playlists interface (fixes #229)
2012-11-17 13:37:06 -08:00
Stein Magnus Jodal
15cb291316 tests: Rename test file so that it's executed 2012-11-17 17:10:27 +01:00
Stein Magnus Jodal
5efce8ac76 local: Trigger playlists_loaded() event on playlist load/refresh 2012-11-17 17:09:27 +01:00
Stein Magnus Jodal
b8c7703c79 mpris: Implement the playlists interface (fixes #229) 2012-11-17 01:45:24 +01:00
Stein Magnus Jodal
330731a247 core: Forward playlists_loaded() event from backends to frontends 2012-11-17 01:22:25 +01:00
Stein Magnus Jodal
0f6c9a1673 backends: Add BackendListener interface with playlists_loaded() event 2012-11-17 01:22:25 +01:00
Stein Magnus Jodal
426d5aea16 core: Trigger playlists_loaded() after playlist refresh 2012-11-17 00:42:03 +01:00
Stein Magnus Jodal
5526ee5a95 core: Add CoreListener.playlists_loaded() event 2012-11-17 00:42:03 +01:00
Stein Magnus Jodal
4efff4a5a3 core: Trigger playlist_changed() event on create() and save() 2012-11-16 23:50:30 +01:00
Stein Magnus Jodal
fd86b7173c core: Add playlist to playlist_changed() event 2012-11-16 23:50:01 +01:00
Stein Magnus Jodal
df4d7cd4c9 http: Update to use unicode literals and not cause warnings with flake8 2012-11-16 22:34:36 +01:00
Stein Magnus Jodal
87ba412942 models: Make TlTrack an ImmutableObject 2012-11-16 15:01:37 +01:00
Stein Magnus Jodal
cfac728def tests: Don't use indexes into TlTracks 2012-11-16 14:57:25 +01:00
Stein Magnus Jodal
0e7f867d67 core: Test tracklist event trigging 2012-11-16 13:54:55 +01:00
Stein Magnus Jodal
d378fd7160 tests: Move events tests from tests/backends/ to tests/core 2012-11-16 11:53:48 +01:00
Stein Magnus Jodal
476df7a14d core: Add tracklist_changed() event 2012-11-16 11:43:49 +01:00
Stein Magnus Jodal
fff70c46a6 core: Make tracklist.append() return the appended TlTracks 2012-11-16 10:26:45 +01:00
Stein Magnus Jodal
684586dd18 mpris: Update for MPRIS 2.2 compliance 2012-11-15 09:04:21 +01:00
Thomas Adamcik
4d4c560882 Merge pull request #240 from jodal/feature/audio-state-events
Audio state events
2012-11-14 15:00:09 -08:00
Stein Magnus Jodal
e1ef73f517 Merge branch 'develop' into feature/http-frontend 2012-11-14 09:35:19 +01:00
Stein Magnus Jodal
3a24deaec3 Rename 'stored playlists' to 'playlists' 2012-11-14 09:23:19 +01:00
Stein Magnus Jodal
87ce7bbe11 audio: Maintain state and trigger events based on GStreamer state changes 2012-11-14 01:49:17 +01:00
Stein Magnus Jodal
76b1fa8e1b audio: Add state_changed(old_state, new_state) event 2012-11-13 20:31:38 +01:00
Stein Magnus Jodal
42fdaf3ff0 audio: Move tests to make room for more audio tests 2012-11-13 20:26:05 +01:00
Stein Magnus Jodal
dc356a81fd Merge branch 'feature/rename-cp-to-tracklist' into develop
Conflicts:
	docs/changes.rst
	mopidy/frontends/mpd/protocol/current_playlist.py
2012-11-13 19:09:18 +01:00
Stein Magnus Jodal
cc39853638 mpd: Normalize file/filename filters to uri filters 2012-11-13 11:53:47 +01:00
Stein Magnus Jodal
4f0a708411 mpd: Allow 'file' key to 'search' and 'find' 2012-11-13 11:34:48 +01:00
Stein Magnus Jodal
bba9548b27 Rename 'current playlist' to 'tracklist' 2012-11-13 10:59:48 +01:00
Stein Magnus Jodal
344d5bd49d Merge pull request #238 from jodal/feature/optional-backend-providers
Make all three backend provider types optional
2012-11-13 01:41:18 -08:00
Stein Magnus Jodal
1b5b7abfdd Allow settings prefixed with 'CUSTOM_' (fixes #204) 2012-11-13 00:44:07 +01:00
Stein Magnus Jodal
6acaa490e9 Make all strings unicode by default (fixes #224) 2012-11-13 00:18:47 +01:00
Stein Magnus Jodal
92bd599ecf Update stored playlists controller to support backends without playlists 2012-11-12 22:38:49 +01:00
Stein Magnus Jodal
d748c07daf Update playback controller to support backends without playback support 2012-11-12 22:19:27 +01:00
Stein Magnus Jodal
6f32d72792 Update the library controller to support backends without a library 2012-11-12 21:41:48 +01:00
Stein Magnus Jodal
86e0eff21d http: Extend player resource, add tracklist and playlists resources 2012-11-10 20:57:18 +01:00
Stein Magnus Jodal
49cf1ab8aa Require at least one frontend and one backend 2012-11-08 14:43:21 +01:00
Stein Magnus Jodal
197447c0cb Remove ancient despotify settings check 2012-11-08 14:42:06 +01:00
Stein Magnus Jodal
f08fba954e Update to work with current develop 2012-11-03 22:03:26 +01:00
Stein Magnus Jodal
938524e67e Merge branch 'develop' into feature/stored-playlists-cleanup 2012-11-03 22:02:19 +01:00
Stein Magnus Jodal
d985b8be38 Fix plchanges so it returns nothing when nothing has changed 2012-11-01 23:28:19 +01:00
Stein Magnus Jodal
60112897d2 MPD: Support listplaylist{,info} without quotes around spaceless playlist name (fixes #218) 2012-11-01 22:29:11 +01:00
Stein Magnus Jodal
8c9a3d6df2 Slugify local playlist names to make them safe to use in paths (#217) 2012-11-01 12:46:29 +01:00
Fred Hatfull
a5b454acc0 Fixes support for MPD find/search by filename
Extends `find_exact` and `search` in mopidy.backends.local.library
to support the `filename` query field. This field can get passed in
from the MPD frontend and would break with a `LookupError` when used.
This patch fixes the issue and introduces two new tests to cover the
added functionality.
2012-10-31 23:45:13 -07:00
Stein Magnus Jodal
6c49a7fc52 Make core.stored_playlists.save() support multibackend (#217) 2012-10-31 16:59:28 +01:00
Stein Magnus Jodal
3d05f3c65f Change stored_playlists.delete() to accepting an URI (#217) 2012-10-31 16:59:28 +01:00
Stein Magnus Jodal
f9f6f9394d Remove stored_playlists.rename() (#217) 2012-10-31 16:59:28 +01:00
Stein Magnus Jodal
06bcad2db9 Make local.stored_playlists.save() capable of renaming playlists (#217) 2012-10-31 16:59:28 +01:00
Stein Magnus Jodal
51aab4f138 Make local stored playlists set and use URIs (#217) 2012-10-31 16:59:28 +01:00
Stein Magnus Jodal
d8378e9284 Set URI on local playlists when reading from disk (#217) 2012-10-31 16:59:28 +01:00
Stein Magnus Jodal
fd88b974e8 Make core.stored_playlists.refresh() support multibackend (#217) 2012-10-31 16:59:28 +01:00
Stein Magnus Jodal
8cc1896b9d Make core.stored_playlists.lookup() support multibackend (#217) 2012-10-31 16:59:28 +01:00
Stein Magnus Jodal
e2474da1ef Make core.stored_playlists.create() support multibackend (#217) 2012-10-31 16:59:28 +01:00
Stein Magnus Jodal
0ddbb4e28a Make core.stored_playlists.playlists read-only (#217) 2012-10-31 16:59:28 +01:00
Stein Magnus Jodal
a679a47212 Minor test updates 2012-10-31 15:27:04 +01:00
Stein Magnus Jodal
ae344e937b Merge branch 'master' into develop
Conflicts:
	docs/changes.rst
	mopidy/__init__.py
	mopidy/audio/__init__.py
	mopidy/backends/dummy.py
	mopidy/backends/local/__init__.py
	mopidy/backends/spotify/__init__.py
	mopidy/utils/__init__.py
	mopidy/utils/network.py
	tests/version_test.py
2012-10-30 18:13:28 +01:00
Stein Magnus Jodal
5d5f0cc6e3 Bump version number to v0.8.1 2012-10-30 17:57:25 +01:00
Stein Magnus Jodal
f1e2cff3e0 Update to work with Pykka 1.0 2012-10-30 16:28:20 +01:00
Stein Magnus Jodal
d60bb57f5f Test new Album.date attribute 2012-10-30 10:18:40 +01:00
Stein Magnus Jodal
1014c6e373 Include both involved backends in the error message 2012-10-29 10:50:18 +01:00
Stein Magnus Jodal
4a79b559d5 Fail if two backends claims to handle the same URI schema 2012-10-29 10:31:35 +01:00
Stein Magnus Jodal
9a617b1803 Improvements after code review 2012-10-28 20:58:51 +01:00
Stein Magnus Jodal
0641d2d207 Make core.stored_playlists.playlists support multiple backends 2012-10-28 11:10:40 +01:00
Stein Magnus Jodal
a35deec050 Make core.library support multiple backends 2012-10-28 11:10:39 +01:00
Stein Magnus Jodal
c47cec9e65 Make core.playback select backend based on track URI 2012-10-28 11:10:39 +01:00
Stein Magnus Jodal
7b9c682e95 Make core.uri_schemes include URI schemes from all backends 2012-10-28 11:10:39 +01:00
Stein Magnus Jodal
2d92a7a228 Start multiple backends 2012-10-27 14:55:09 +02:00
Stein Magnus Jodal
956655f742 Update tests to use tracks with valid URIs 2012-10-27 14:53:35 +02:00
Stein Magnus Jodal
d685fe554c Simplify pykka imports 2012-10-26 22:57:41 +02:00
Stein Magnus Jodal
587dde287f Update to work with Pykka 1.0 2012-10-26 22:32:06 +02:00
Stein Magnus Jodal
c915c197dd Formatting 2012-10-25 22:49:47 +02:00
Stein Magnus Jodal
8683537816 Don't use command_list as both bool and list (#211) 2012-10-17 01:43:22 +02:00
Stein Magnus Jodal
afdc665ac0 Use deps.{platform_info,python_info} in log 2012-10-16 22:26:28 +02:00
Stein Magnus Jodal
5a0529b142 Empty utils/__init__.py 2012-10-16 21:36:51 +02:00
Stein Magnus Jodal
d4f5d02c72 Move MpdSession to a session module 2012-10-16 16:13:23 +02:00
Stein Magnus Jodal
d9d6a3d5b6 Move exceptions to mopidy.exceptions 2012-10-16 16:08:46 +02:00
Stein Magnus Jodal
ac60bcdf8e Fix all flake8 warnings in tests (#211) 2012-10-16 14:43:31 +02:00
Stein Magnus Jodal
c115cf123f MPD: Use core actor passed to frontend 2012-09-28 00:48:28 +02:00
Stein Magnus Jodal
9fd3e93cb6 MPRIS: Use core actor passed to frontend 2012-09-28 00:48:28 +02:00
Stein Magnus Jodal
706b6c6d3f Pass core actor to frontends 2012-09-28 00:48:24 +02:00
Stein Magnus Jodal
63cd153b1b Let NetworkServer pass protocol_kwargs on 2012-09-28 00:48:23 +02:00
Stein Magnus Jodal
e7f08a7a20 Rename mopidy.{listeners.BackendListener => core.CoreListener} 2012-09-27 20:35:39 +02:00
Stein Magnus Jodal
2fdeec9f5a Move controllers to a new core actor
The frontends use the new core actor, while the core actor uses the backend.

This is a step towards supporting multiple backends, where the core actor will
coordinate the backends.
2012-09-27 20:35:39 +02:00
Stein Magnus Jodal
5265609610 MPRIS: New BackendListener.seeked() signature 2012-09-26 22:12:38 +02:00
Stein Magnus Jodal
66f476e85a Fix typo 2012-09-26 10:08:59 +02:00
Stein Magnus Jodal
81fca7d686 Switch to time position from provider 2012-09-25 11:18:27 +02:00
Stein Magnus Jodal
12d6ce53dd Send new time position to 'seeked' listeners 2012-09-25 11:18:27 +02:00
Stein Magnus Jodal
28e5ed8b2e Send old and new state to playback_state_changed listeners 2012-09-25 11:18:26 +02:00
Stein Magnus Jodal
b3f3cfe2a0 Use assert{Less,Greater}[EEqual] in tests 2012-09-25 11:18:26 +02:00
Stein Magnus Jodal
7d4b605ee5 Update version number to 0.8.0 2012-09-20 01:01:38 +02:00
Stein Magnus Jodal
6451519d2a MPD: Support 'playid 0' without quotes around id 2012-09-20 00:28:30 +02:00
Stein Magnus Jodal
52c7726de2 MPD command 'close' does not return 'OK'
Test broke when Pykka actors started processing the actor inbox before
stopping themselves.
2012-09-19 01:50:48 +02:00
Thomas Adamcik
5a47dfe159 Update import style in tests.utils.path 2012-09-16 22:44:15 +02:00
Thomas Adamcik
a707daf458 Add tests for expand_path and fix ordering.
Expansions need to happen before abspath is called or else result is wrong.
2012-09-16 22:26:44 +02:00
Thomas Adamcik
6cc57701f9 Update parse_m3u to allow caller to decide what location playlist is relative to. 2012-09-16 19:28:15 +02:00
Thomas Adamcik
7ceb530064 Updated find files to ignore hidden files and folders. 2012-09-16 18:14:11 +02:00
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
0559213da3 Move backend controllers to mopidy.core 2012-09-13 23:41:20 +02:00
Stein Magnus Jodal
7525cad94c Let Track.date be an ISO-8601 string
This lets us have less precision than full dates. E.g. Spotify tracks only got
release year, not full release date.

The original MPD server regularly expose data like this as "Date: 1977", so we
don't need to fake more precision for MPD's sake.
2012-09-12 23:06:06 +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
4bffea8b1f Test the GStreamer class as an actor
The test should use the same interface and code paths as production code.
2012-09-10 00:34:12 +02:00
Thomas Adamcik
db3a201795 Fix tests and update docs with #150 fix. 2012-09-09 22:09:23 +02:00
Stein Magnus Jodal
e948a51310 Remove duplicate tearDown() 2012-09-08 23:05:31 +02:00
Stein Magnus Jodal
e3ba389996 Make MPRIS frontend handle unknown volume 2012-09-08 01:24:48 +02:00
Stein Magnus Jodal
21a85c0898 Merge pull request #178 from adamcik/feature/serialize
Imutable object serialization support
2012-09-05 16:57:24 -07:00
Thomas Adamcik
59dc48e982 Merge branch 'develop' into feature/serialize 2012-09-06 00:03:33 +02:00
Thomas Adamcik
6805c16b1a Add .serialize() method to ImutableObjects.
Should be useful for things like dumping to json.
2012-09-05 23:54:37 +02:00
Thomas Adamcik
b0d6dc3e0c Remove injected gstreamer settings. 2012-09-05 22:42:09 +02:00
Thomas Adamcik
1255b87877 Try running with fakesink for gstreamer test. 2012-09-05 01:26:05 +02:00
Thomas Adamcik
c71202c2be Remove all of mopidy.mixers and tests.mixers modules. 2012-09-04 00:54:28 +02:00
Thomas Adamcik
4ffd06736e Update MPD frontend to use playback volume API. 2012-09-04 00:52:12 +02:00
Thomas Adamcik
14eeb20226 Update MPRIS to use playback.volume API. 2012-09-04 00:30:02 +02:00
Thomas Adamcik
114bc10ae8 Merge branch 'develop' into feature/switch-to-gst-mixers
Conflicts:
	mopidy/gstreamer.py
2012-09-03 22:54:22 +02:00
Stein Magnus Jodal
6b41806eea Merge remote-tracking branch 'adamcik/feature/simplify-outputs' into develop
Conflicts:
	docs/changes.rst
	mopidy/utils/settings.py
2012-09-03 22:08:52 +02:00
Thomas Adamcik
f6b96680ae Fix MPD volume command.
The command should return -1 when the volume is not known.
2012-09-01 22:07:15 +02:00
Thomas Adamcik
40502e41e5 Update tests to catch scaling problem in mixer.
- Fixes problem where 60% became 59% due to bad rounding.
- Tests assume scale of 0-65536 which matches ALSA.
- Check all possible values of set_volume and ensure we the right value out.
2012-09-01 14:35:20 +02:00
Thomas Adamcik
2b01860680 Make it possible to override GStreamer settings in tests.
- Specifically you can now pass in values instead of relying on global
  settings.
2012-09-01 14:01:11 +02:00
Thomas Adamcik
b796d7c859 Add create fakemixer element for testing.
- GStreamer tests now use this instead of a real mixer.
- fakemixer and the autoaudiomixer still need to be moved.
- We should probably use a fakesink as output as well.
2012-09-01 13:34:16 +02:00
Thomas Adamcik
2d5ba154ed Switch to module imports and with assertRaises in init_test. 2012-09-01 13:33:41 +02:00
Stein Magnus Jodal
fbc9aef828 Merge remote-tracking branch 'adamcik/feature/settings-did-you-mean' into develop 2012-09-01 13:29:13 +02:00
Stein Magnus Jodal
5c6dc96f9d Fix typo 2012-09-01 13:07:14 +02:00
Thomas Adamcik
e4d425d37a Add did you mean tests for settings.
- Checks varying degrees of typos until the edit distance becomes to large.
- Also updated did you mean to always uppercase it's input so we catch caps
  errors.
2012-09-01 12:28:32 +02:00
Thomas Adamcik
1f8289a256 Switch to only importing modules in settings_test. 2012-09-01 12:22:41 +02:00
Thomas Adamcik
4e4a209ec3 Fix existing settings tests that did_you_mean broke. 2012-09-01 12:15:08 +02:00
Thomas Adamcik
703141c15b Make sure bad data to OUTPUT does not deadlock.
- Moves GStreamer initialization out of on-start as it is not obvious to me how
  to stop rest of setup on other ways.

- Note that gst.GError != gobject.GError as far as except is concerned.
2012-09-01 01:35:51 +02:00
Stein Magnus Jodal
a452c49bd3 We're only considering a small subset of the Gstreamer elements 2012-09-01 00:49:12 +02:00
Stein Magnus Jodal
d712551c3f Add list of Gstreamer elements to checck in --list-deps 2012-09-01 00:16:39 +02:00
Stein Magnus Jodal
41853dd3d8 Add platform adapter for --list-deps 2012-09-01 00:00:14 +02:00
Stein Magnus Jodal
05c935bc4c Add Python impl adapter for --list-deps 2012-08-31 23:59:53 +02:00
Stein Magnus Jodal
44b6307046 Add pyserial adapter for --list-deps 2012-08-31 23:13:15 +02:00
Stein Magnus Jodal
240ab0d226 Add dbus adapter for --list-deps 2012-08-31 22:58:47 +02:00
Stein Magnus Jodal
6e01b320d7 Skip tests for unavailable optional deps 2012-08-31 22:57:29 +02:00
Stein Magnus Jodal
a661b6d848 Add pylast adapter for --list-deps 2012-08-31 22:49:59 +02:00
Stein Magnus Jodal
4284e08d69 Strip file name from printed import paths 2012-08-31 22:46:18 +02:00
Stein Magnus Jodal
4c6a6af487 Add Gstreamer adapter for --list-deps 2012-08-31 22:40:08 +02:00
Stein Magnus Jodal
a25e7d9530 Add pyspotify adapter for --list-deps 2012-08-31 22:17:54 +02:00
Stein Magnus Jodal
5fcc4e67aa Add --list-deps command with Pykka adapter 2012-08-31 21:55:01 +02:00
Stein Magnus Jodal
2262bf91d5 Fix crash in 'playlistinfo' when called with a songpos not matching an CPID (fixes #162) 2012-08-24 00:21:03 +02:00
Stein Magnus Jodal
52e242cbe1 Update version number to 0.7.3 2012-08-11 03:37:55 +02:00
Stein Magnus Jodal
0e66ffe6a5 Add locale_decode util function that decodes bytestrings using the current locale's encoding 2012-08-10 23:12:04 +02:00
Stein Magnus Jodal
1f12951fa2 Prepare for maintenance release 2012-05-07 22:56:09 +02:00
Stein Magnus Jodal
de7b165028 Merge branch 'master' into develop
Conflicts:
	docs/changes.rst
	mopidy/__init__.py
	tests/version_test.py
2012-04-22 01:31:47 +02:00
Stein Magnus Jodal
1dae3442e0 Release v0.7.1 2012-04-22 01:30:20 +02:00
Stein Magnus Jodal
ee0c7c1af5 Add __version__ to mopidy module 2012-03-04 23:26:24 +01:00
Stein Magnus Jodal
42d41d6fe7 Prepare for v0.8 development 2012-02-25 01:06:52 +01:00
Stein Magnus Jodal
0269686453 Fix volume response when capping volume 2012-02-24 23:50:45 +01:00
Stein Magnus Jodal
219e723974 Fix crash on mismatching quotation (fixes #137) 2012-02-13 10:30:46 +01:00
Stein Magnus Jodal
fc5f6df740 Simplify DenonMixer constructor args 2012-02-10 00:34:33 +01:00
Stein Magnus Jodal
413603f981 Remove old redundant comment 2012-02-10 00:02:54 +01:00
Stein Magnus Jodal
8c2a333938 get_or_create_folder should also create intermediate folders 2012-02-09 23:12:40 +01:00
Stein Magnus Jodal
f1ba8af0de Ignore MPRIS tests on OS X 2012-02-08 13:24:28 +01:00
Stein Magnus Jodal
4cc7b87669 Merge branch 'master' into develop 2011-12-28 22:17:15 +01:00
Stein Magnus Jodal
5528edd3ad Update changelog for v0.6.1 release 2011-12-28 21:45:08 +01: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
7b0954bef8 Simplify 'playlistinfo' implementation further, guided by new test asserts 2011-12-28 01:00:14 +01:00
Stein Magnus Jodal
6f6e2c7fd7 Let track{,s}_to_mpd_format() understand CpTrack objects
Thus the cpid and cpids kwargs can be removed, and lots of code doing
formatting of MPD responses can be simplified. This also reduces the
need for making full copies of the current playlist, which improves
performance.
2011-12-28 00:31:27 +01:00
Stein Magnus Jodal
c5a4bb0e22 Rename tracks_len to length, and add test 2011-12-27 22:31:50 +01:00
Stein Magnus Jodal
b0319d1f70 Prepare for v0.7 development 2011-10-09 00:43:20 +02:00
Stein Magnus Jodal
808b9e026a Add yappi profiling to tests/__main__.py 2011-09-24 19:09:21 +02:00
Stein Magnus Jodal
6a470f9694 Fix typo 2011-08-06 17:00:21 +02:00
Stein Magnus Jodal
d8959341e8 Unescapes all incoming MPD requests (fixes #113) 2011-08-02 22:35:50 +02:00
Stein Magnus Jodal
611efebd6f Update GitHub Issues URLs 2011-08-02 01:53:20 +02: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
Thomas Adamcik
a89d89d05f Merge pull request #127 from jodal/feature/mpris-frontend
feature/mpris-frontend
2011-07-31 09:05:08 -07: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
ae4cd6a7de Extract .desktop file path to new setting DESKTOP_FILE 2011-07-29 22:35:46 +02:00
Thomas Adamcik
cb4f32cb58 Try to send directly in quene_send when we can to prevent uneeded context switches 2011-07-28 22:51:41 +02:00
Thomas Adamcik
3195476421 Rename old send tests to queue_send 2011-07-28 22:44:43 +02:00
Thomas Adamcik
93c16cc2cd Add tests for socket sending 2011-07-28 22:43:54 +02:00
Thomas Adamcik
4f6ddd3532 Add error handling tests for new send method 2011-07-28 22:41:53 +02:00
Thomas Adamcik
43f4f1537e Extract send to seperate method 2011-07-28 22:34:47 +02:00
Thomas Adamcik
13d4510e12 Rename send to send_queue in network.Connection 2011-07-28 22:28:17 +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
d14dbc5587 Split MPRIS frontend into multiple files. Fix some pylint warnings. 2011-07-28 01:03:51 +02:00
Stein Magnus Jodal
3c1ba51580 Add util method for emitting PropertiesChanged 2011-07-28 00:34:44 +02:00
Stein Magnus Jodal
2ad54204ee Emit mpris.Seeked signal on seek 2011-07-27 01:23:39 +02:00
Stein Magnus Jodal
607cdc7871 Add seeked event 2011-07-27 01:20:00 +02:00
Stein Magnus Jodal
3c2a944e8a Emit signal on volume change 2011-07-27 01:01:34 +02:00
Stein Magnus Jodal
db4f2d135f Add missing tests for default impl of listener methods 2011-07-27 00:53:18 +02:00
Stein Magnus Jodal
1399bb61dc Update listener method names to match interface 2011-07-27 00:49:18 +02:00
Stein Magnus Jodal
c7c9f6b718 Merge branch 'develop' into feature/mpris-frontend 2011-07-27 00:21:23 +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
fcaaa5e645 Remove workaround from last to commits in favor of fix of root cause. Problem was that 'elapsed' should be returned in seconds, not milliseconds 2011-07-27 00:08:17 +02:00
Stein Magnus Jodal
6e2bfcf3d5 Add test for previous commit 2011-07-26 10:57:20 +02:00
Thomas Adamcik
035af38b02 Merge branch 'develop' into feature/support-telnet
Conflicts:
	tests/utils/network/lineprotocol_test.py
2011-07-25 17:39:00 +02:00
Thomas Adamcik
9fe4674b36 Update on_received to handle that decode can fail 2011-07-25 01:24:19 +02:00
Thomas Adamcik
c724fcd7c9 Turns out idle and noidle are not commands that should be listed 2011-07-25 01:00:18 +02:00
Thomas Adamcik
4049b23c3f Add concept of delimeter to complemend terminator in LineProtocol 2011-07-25 00:50:41 +02:00
Thomas Adamcik
451b52fde5 Make sure we prevent timeouts when in idle mode 2011-07-24 01:59:32 +02:00
Thomas Adamcik
9895f5197c Test via on_receive instead of on_line_received to ensure timeout code is also tested 2011-07-23 14:48:52 +02:00
Thomas Adamcik
0e58d771cd Make tests check that response only has values once, fixes double OK bug 2011-07-23 03:58:26 +02:00
Thomas Adamcik
63dba5553f Move idle code from dispatcher to protocol.status module 2011-07-23 03:32:45 +02:00
Thomas Adamcik
171137504f Move subscriptions and events into context object 2011-07-23 02:30:13 +02:00
Thomas Adamcik
08d486785d Basic working version of idle command 2011-07-23 02:23:20 +02:00
Thomas Adamcik
37d5509a62 Merge branch 'develop' into feature/mpd-idle-support 2011-07-21 01:59:26 +02:00
Thomas Adamcik
b5a32a1dc3 Migrate authentication_test 2011-07-20 20:35:27 +02:00
Thomas Adamcik
df66a4234b Migrate command_list_test 2011-07-20 20:30:50 +02:00
Thomas Adamcik
15e6f1a6ca Cleanup imports and dispatcher assignment in protocol.BaseTestCase 2011-07-20 20:27:38 +02:00
Thomas Adamcik
f88a0a0090 Migrate connection_test and support any number of blanks as empty command 2011-07-20 20:23:14 +02:00
Thomas Adamcik
b445af7cfb Migrate reflection_test 2011-07-20 20:09:58 +02:00
Thomas Adamcik
730368dbeb Migrate regression_test 2011-07-20 20:00:25 +02:00
Thomas Adamcik
5d18c64bf9 Migrate stored_playlists_test 2011-07-20 19:44:06 +02:00
Thomas Adamcik
ec69ce2044 Partially migrate status_test 2011-07-20 19:36:03 +02:00
Thomas Adamcik
c3a498e62b Migrate stickers_test 2011-07-20 18:00:59 +02:00
Thomas Adamcik
93d2aa8240 Migrate music_db_test.py 2011-07-20 17:53:24 +02:00
Thomas Adamcik
c4a1692d92 Migrate current_playlist_test 2011-07-20 17:38:05 +02:00
Thomas Adamcik
523f5eb03a Migrate audo_output_test 2011-07-20 16:29:39 +02:00
Thomas Adamcik
6d444362a1 Cleanup imports in playback_test 2011-07-20 16:25:16 +02:00
Thomas Adamcik
3d1c47586e Match assertIn behaviour and rename helper to assertInResponse 2011-07-20 16:14:43 +02:00
Thomas Adamcik
da9b6470ba Switched playback test over to testing via MpdSession slightly higher level testing 2011-07-19 23:57:26 +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
Thomas Adamcik
1727a73f5f Merge branch 'develop' into feature/glib-loop
Conflicts:
	docs/changes.rst
2011-07-17 23:45:20 +02:00
Thomas Adamcik
292d0e26cf Fix minor issue in get_class bug caused by bad user input. 2011-07-17 04:18:24 +02:00
Thomas Adamcik
e2597ab23f Fix minor bug in settings subsystem that prevented _FILE/PATH settings to be set to None 2011-07-17 02:11:06 +02:00
Thomas Adamcik
d07a758f68 Update tests to reflect that server's socket errors should simply not be handeled 2011-07-17 00:42:37 +02:00
Thomas Adamcik
d2a9e3d1ec Make send_callback respect flags from gobject 2011-07-17 00:33:15 +02:00
Thomas Adamcik
c773998fd8 Stop actor if decode or encode fails 2011-07-17 00:26:50 +02:00
Thomas Adamcik
ffd4ae5045 Some more test cleanup and improvement 2011-07-17 00:06:10 +02:00
Thomas Adamcik
91b450bd6b Add tests for line protocol host and port properties 2011-07-16 22:56:43 +02:00
Thomas Adamcik
a1c382666f Split up tests into multiple files 2011-07-15 01:08:29 +02:00
Thomas Adamcik
e6781135ba Doubled checked most network.Server/Connection/LineProtocol tests 2011-07-15 00:48:47 +02:00
Thomas Adamcik
805a6fefd0 Lint fixing 2011-07-14 23:14:51 +02:00
Thomas Adamcik
e23476cc6f Cleanup some tests 2011-07-14 23:05:08 +02:00
Thomas Adamcik
fe6e4a65f5 Fix syntax error 2011-07-14 11:09:04 +02:00
Thomas Adamcik
cf48faad98 Remove log_* method from LineProtocol 2011-07-13 23:57:00 +02:00
Thomas Adamcik
66a89918c8 Add LineProtocol tests 2011-07-13 23:11:28 +02:00
Thomas Adamcik
ee6f5a651b Try to prevent recursive calls to stop 2011-07-13 22:43:57 +02:00
Thomas Adamcik
a49855abfa Improve error handling in connection code 2011-07-13 22:32:35 +02:00
Thomas Adamcik
51190c510a Switch to more robust checking of stop calls 2011-07-12 22:02:56 +02:00
Thomas Adamcik
2f1d32ba80 Add IsA helper to tests to provde any_int, any_str and any_unicode 2011-07-12 22:02:50 +02:00
Thomas Adamcik
b9286fb9ee Log why we are stopping 2011-07-12 03:48:02 +02:00
Thomas Adamcik
b5c6bc0442 Allways return true from recv_callback, rely on activly removing sources instead 2011-07-12 03:18:07 +02:00
Thomas Adamcik
8c9fc73550 Implement rest of connection tests 2011-07-12 03:15:30 +02:00
Thomas Adamcik
b14e019d98 Write up most of ConnectionTest, only callbacks to go 2011-07-12 02:10:42 +02:00
Thomas Adamcik
d9406420e3 Add missing reject_connection_test 2011-07-12 01:35:13 +02:00
Thomas Adamcik
6d7575a2db Changed test strategy to use mocks in better way, i.e. rewrote ServerTest 2011-07-12 01:32:14 +02:00
Thomas Adamcik
9b41eb17c5 Lint fixing 2011-07-11 23:55:33 +02:00
Thomas Adamcik
471ab6802a Add tests that backed the network.Server refactor 2011-07-11 18:57:03 +02:00
Thomas Adamcik
c3d7b3c77f Merge branch 'develop' into feature/glib-loop 2011-07-04 20:52:03 +02:00
Stein Magnus Jodal
2b5f942f44 Don't use asserts new in unittest2/Python 2.7 2011-07-04 19:04:57 +02:00
Thomas Adamcik
6e0d9905ed Sort imports 2011-07-04 00:40:50 +02:00
Thomas Adamcik
75984dda6a Merge branch 'develop' into feature/glib-loop
Conflicts:
	mopidy/core.py
	mopidy/frontends/mpd/__init__.py
2011-07-04 00:31:18 +02:00
Stein Magnus Jodal
8a49b1f325 Update MPRIS' Metadata on started_playing/stopped_playing 2011-06-29 18:10:27 +03:00
Stein Magnus Jodal
2812e7ad45 Update MPRIS' PlaybackStatus on play/stop/pause/resume 2011-06-29 17:53:23 +03: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
232d81aab8 Merge branch 'feature/event-listeners' into feature/mpris-frontend
Conflicts:
	docs/changes.rst
2011-06-27 19:49:07 +03:00
Stein Magnus Jodal
0794a8792a Add BackendListener interface to be impl by any who wants events from the backend 2011-06-27 19:39:43 +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
93f00ce7f2 Add check of URI schema to OpenUri 2011-06-22 00:28:51 +03:00
Stein Magnus Jodal
e5725bb26b Update SetPosition to support real track IDs instead of URIs 2011-06-22 00:18:08 +03:00
Stein Magnus Jodal
190faf745a 'shuffle' should be 'random' in our backend 2011-06-22 00:04:03 +03:00
Stein Magnus Jodal
3259a11c8d Test and implement mpris.Metadata property 2011-06-22 00:04:03 +03:00
Stein Magnus Jodal
90ce8b21bc Test and implement mpris.SupportedUriSchemes property 2011-06-22 00:04:02 +03:00
Stein Magnus Jodal
7faed379ef Check if CanPlay==true in OpenUri for consistency (even though the spec doesn't mention it) 2011-06-22 00:04:02 +03:00
Stein Magnus Jodal
26868401c6 Check if CanControl==true in set_Rate for consistency (even though the spec doesn't mention it) 2011-06-22 00:04: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
182f074222 Use new exit_process() function in mpris.Quit() 2011-06-20 19:47:16 +03:00
Stein Magnus Jodal
26b7f5e8b5 Test and implement all direct checks of CanGoNext==true 2011-06-20 15:29:22 +03:00
Stein Magnus Jodal
7f64ba3e72 Test and implement mpris.CanGoNext property 2011-06-20 15:27:21 +03:00
Stein Magnus Jodal
8f59b0fae8 Test and implement all direct checks of CanGoPrevious==true 2011-06-20 15:21:44 +03:00
Stein Magnus Jodal
70139e0b7b Test and implement mpris.CanGoPrevious property 2011-06-20 15:21:09 +03:00
Stein Magnus Jodal
4de7c242b7 Test and implement all direct checks of CanPlay==true 2011-06-20 15:11:25 +03:00
Stein Magnus Jodal
4013a2ec9a Test and implement mpris.CanPlay property 2011-06-20 15:11:25 +03:00
Stein Magnus Jodal
97111d710f Test and implement all direct checks of CanPause==true 2011-06-20 14:53:11 +03:00
Stein Magnus Jodal
27c4b68e0f Test and implement mpris.CanPause property 2011-06-20 14:49:22 +03:00
Stein Magnus Jodal
10eeb894cc Test and implement all direct checks of CanSeek==true 2011-06-20 14:44:23 +03:00
Stein Magnus Jodal
7c2d3cd541 Test and implement mpris.CanSeek property 2011-06-20 14:44:23 +03:00
Stein Magnus Jodal
c8bc52b4c6 Test and implement all direct checks of CanControl==true before doing the designated action 2011-06-20 14:44:22 +03:00
Stein Magnus Jodal
a4d73a8d7e Test and implement mpris.CanControl property 2011-06-20 14:44:22 +03:00
Stein Magnus Jodal
22cba6f75c Test and implement mpris.OpenUri 2011-06-20 00:15:13 +03:00
Thomas Adamcik
74aa96b300 Moved mpd session to mopidy.frontends.mpd 2011-06-17 01:44:22 +02:00
Stein Magnus Jodal
efb3cb1102 Merge branch 'develop' into feature/mpris-frontend 2011-06-15 23:18:53 +02:00
Stein Magnus Jodal
653890c037 Ready for v0.6 development 2011-06-15 23:10:51 +02:00
Stein Magnus Jodal
1b075ac4a4 Test and implement mpris.Position property 2011-06-11 00:07:18 +02:00
Stein Magnus Jodal
84ac7b3e6a Test and implement mpris.Volume property 2011-06-11 00:01:42 +02:00
Stein Magnus Jodal
3df3527c73 Test and implement mpris.Shuffle property 2011-06-10 20:42:34 +02:00
Stein Magnus Jodal
e1fc403435 Test and implement mpris.Rate property 2011-06-10 20:35:45 +02:00
Stein Magnus Jodal
5d1da4eeaf Test and implement mpris.SetPosition() 2011-06-10 20:21:55 +02:00
Stein Magnus Jodal
4404e34a79 Test and implement mpris.Seek() 2011-06-10 19:55:59 +02:00
Stein Magnus Jodal
1a6d577ed5 Test and implement mpris.Play() 2011-06-10 19:39:36 +02:00
Stein Magnus Jodal
fae469cca3 Merge branch 'develop' into feature/mpris-frontend
Conflicts:
	docs/changes.rst
2011-06-10 19:30:00 +02:00
Stein Magnus Jodal
c0a39afa31 Do not interactively ask for settings when they are already set locally 2011-06-10 14:30:32 +02:00
Stein Magnus Jodal
05c533014e Ensure tests are not affected by local settings 2011-06-10 09:54:04 +02:00
Johannes Knutsen
33e70de661 Test interactive input 2011-06-09 20:28:38 +02:00
Johannes Knutsen
efa38d2449 Read interactive settings optional by adding --interactive option 2011-06-09 20:04:13 +02:00
Johannes Knutsen
e97b32d041 rename SPOTIFY_HIGH_BITRATE setting to SPOTIFY_BITRATE, and use actual bitrate value to define preferred bitrate 2011-06-09 17:18:35 +02:00
Stein Magnus Jodal
02ff811770 Merge pull request #106 from adamcik/feature/improve-scanner
feature/improve-scanner
2011-06-09 04:56:35 -07:00
Thomas Adamcik
90f2fe64ec Merge branch 'develop' into feature/improve-scanner 2011-06-09 13:48:01 +02:00
Stein Magnus Jodal
7c6c48feaa Merge branch 'develop' into feature/mpris-frontend 2011-06-07 16:30:05 +02:00
Thomas Adamcik
6575dafcb9 Merge branch 'develop' into feature/extract-socket-code 2011-06-07 15:51:34 +02:00
Thomas Adamcik
cf3b6dcb2b Add create socket test 2011-06-07 15:45:52 +02:00
Thomas Adamcik
14a9a3fb66 Use mocking for network.has_ipv6 monkey patching 2011-06-07 15:27:36 +02:00
Thomas Adamcik
ea9159a9ba Add test for try_ipv6_socket 2011-06-07 15:27:29 +02:00
Thomas Adamcik
d664c11e22 Pull network related functions out of mopidy.frontends.mpd.server 2011-06-07 14:09:15 +02: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
92937bd3ac Make the error_code a class attribute on MPD exceptions 2011-06-07 02:26:58 +02:00
Stein Magnus Jodal
25d0b3d262 Test mpris.Stop() 2011-06-07 00:48:19 +02:00
Stein Magnus Jodal
8bea548518 Test and implement mpris.PlayPause() 2011-06-07 00:43:07 +02:00
Stein Magnus Jodal
1e73e7bbf7 Make mpris.Previous() state change tests pass 2011-06-07 00:08:48 +02:00
Stein Magnus Jodal
5f7e905603 Add missing __init__.py in MPRIS test dir 2011-06-07 00:08:48 +02:00
Stein Magnus Jodal
9de9d91020 Remove unused import and mock 2011-06-07 00:08:33 +02:00
Stein Magnus Jodal
b99b68209e Test mpris.Pause() 2011-06-06 11:07:26 +02:00
Stein Magnus Jodal
3eecfac9f1 Test state changes on mpris.Previous() 2011-06-05 15:56:24 +02:00
Stein Magnus Jodal
136daac6a2 Test state changes on mpris.Next() 2011-06-05 15:49:15 +02:00
Stein Magnus Jodal
167384af60 Use 'mpris' instead of 'mpris_object' in tests 2011-06-05 14:14:50 +02:00
Stein Magnus Jodal
e407d8a4bb Implement setting of LoopStatus 2011-06-05 14:13:12 +02:00
Stein Magnus Jodal
9c0e139c17 Switch from mocking the backend to using DummyBackend 2011-06-05 14:10:14 +02:00
Stein Magnus Jodal
7f20cf4e83 Implement getting of LoopStatus 2011-06-05 02:21:36 +02:00
Stein Magnus Jodal
f3cfa22c75 Implement PlaybackStatus property 2011-06-05 02:15:37 +02:00
Stein Magnus Jodal
f038c338b1 Add missing DesktopEntry property to root interface 2011-06-05 01:44:45 +02:00
Stein Magnus Jodal
b21f1caa2b Test properties of the root interface 2011-06-05 01:44:45 +02:00
Stein Magnus Jodal
fbf3d23fd8 Some initial simple unit testing of the MPRIS frontend, without real D-Bus or real backend 2011-06-05 01:44:42 +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
Stein Magnus Jodal
6c68b17b45 Fix 'commands' and 'notcommands' for unauthenticated users
Use newly gained access to the current user's authentication state and
the command handler's auth_required flag to give correct 'commands' and
'notcommands' output to unauthenticated users when password
authentication is activated.
2011-06-04 19:44:16 +02:00
Stein Magnus Jodal
601a0f0a45 You are always authenticated when MPD_SERVER_PASSWORD==None 2011-06-04 19:02:20 +02:00
Stein Magnus Jodal
e68d715d3e Rename handle_pattern decorator to handle_request 2011-06-04 18:51:18 +02:00
Stein Magnus Jodal
08f085fd8d Refactor MpdDispatcher to use a filter model, like Java Servlets. Password authentication handling becomes much cleaner. 2011-06-04 02:21:14 +02:00
Thomas Adamcik
89104bd326 Add skipped test case for date missing in scanner tests 2011-06-04 01:52:11 +02:00
Thomas Adamcik
f091433a53 Cleanup error feedback 2011-06-04 01:51:44 +02:00
Stein Magnus Jodal
a68bdae751 Move MPD authentication check from MpdSession to MpdDispatcher 2011-06-04 00:42:51 +02:00
Stein Magnus Jodal
1db84dccca Refactor MpdDispatcher.handle_request 2011-06-04 00:33:57 +02:00
Stein Magnus Jodal
bf175a3dce Rename one letter variable in tests 2011-06-03 23:58:24 +02:00
Stein Magnus Jodal
c9506ca7e1 List 'kill' MPD command in 'notcommands' instead of 'commands' 2011-06-03 23:32:19 +02:00
Stein Magnus Jodal
7f7d79b21f Return permission error on use of MPD command 'kill' 2011-06-03 23:31:52 +02:00
Stein Magnus Jodal
c84639b197 Add MpdPermissionError exception 2011-06-03 23:25:00 +02:00
Stein Magnus Jodal
9545da4b4e Refactor MPD dispatcher 2011-06-03 22:37:05 +02:00
Stein Magnus Jodal
52ee117153 Merge branch 'feature/clean-shutdown' into feature/mpd-improvements 2011-06-03 22:35:48 +02:00
Stein Magnus Jodal
30d6d6f29e Close client connection on MPD command 'close' 2011-06-03 17:18:38 +02:00
Stein Magnus Jodal
cbdc37a24d Replace all single letter instance variables in MPD protocol tests 2011-06-03 16:52:52 +02:00
Stein Magnus Jodal
d57727282e Create new MpdContext object which is passed to command handlers 2011-06-03 16:34:47 +02:00
Stein Magnus Jodal
86e90f14c6 Add MpdSystemError exception 2011-05-25 21:58:34 +02:00
Stein Magnus Jodal
0b2b0c5c3c Show current setting value on same line as setting name 2011-05-19 22:37:09 +02:00
Stein Magnus Jodal
a760a7fdb4 Use pprint to format long setting values 2011-05-19 22:31:04 +02:00
Stein Magnus Jodal
7074b4928c Add some tests for --list-settings formatting 2011-05-19 22:30:09 +02:00
Stein Magnus Jodal
b796661dc1 List --help-gst in Mopidy's --help listing 2011-05-09 23:16:45 +02:00
Stein Magnus Jodal
f035ea31ef Allow GStreamer to process --help-gst 2011-05-09 23:13:06 +02:00
Stein Magnus Jodal
ebee962020 Test that --help returns the options we expect it to 2011-05-08 01:38:04 +02:00
Stein Magnus Jodal
254d955385 Merge branch 'hotfix/0.4.1' into develop
Conflicts:
	docs/changes.rst
	mopidy/__init__.py
	tests/version_test.py
2011-05-06 00:25:06 +02:00
Thomas Adamcik
e1cc1dfe48 Rename prepare_playback to prepare_change 2011-05-05 20:17:28 +02:00
Thomas Adamcik
76a33f37db Add some more tests 2011-05-04 23:42:14 +02:00
Thomas Adamcik
9998a0e80f Update gstreamer test 2011-05-04 23:35:50 +02:00
Thomas Adamcik
42547563ea Convert set_state to internal method 2011-05-03 23:08:31 +02:00
Thomas Adamcik
865d62e6e1 Merge branch 'develop' into feature/modularised-output
Conflicts:
	mopidy/gstreamer.py
2011-05-01 23:51:33 +02:00
Stein Magnus Jodal
9f130f4dfc Bump version number to 0.4.1 2011-04-29 21:44:57 +02:00
Stein Magnus Jodal
50aef50989 Ready for 0.5.0 development 2011-04-27 00:20:08 +02:00
Thomas Adamcik
472e4d2790 Rename output to gstreamer in backends 2011-04-25 21:30:01 +02:00
Thomas Adamcik
e1ef4171b5 Merge branch 'develop' of http://github.com/mopidy/mopidy into develop 2011-04-25 20:37:50 +02:00
Thomas Adamcik
a4c526774b Kill off stale shoutcast tests 2011-04-25 17:44:21 +02:00
Stein Magnus Jodal
043338d3af Revert "Merge branch 'feature/multi-backend' into develop"
This reverts commit c8639f48da, reversing
changes made to 3e0a04ab91.
2011-04-25 15:14:00 +02:00
Stein Magnus Jodal
5f7988d974 Merge branch 'develop' into feature/multi-backend
Conflicts:
	mopidy/backends/local/__init__.py
	mopidy/outputs/gstreamer.py
	tests/frontends/mpd/audio_output_test.py
	tests/frontends/mpd/command_list_test.py
	tests/frontends/mpd/connection_test.py
	tests/frontends/mpd/current_playlist_test.py
	tests/frontends/mpd/dispatcher_test.py
	tests/frontends/mpd/music_db_test.py
	tests/frontends/mpd/playback_test.py
	tests/frontends/mpd/reflection_test.py
	tests/frontends/mpd/regression_test.py
	tests/frontends/mpd/status_test.py
	tests/frontends/mpd/stickers_test.py
	tests/frontends/mpd/stored_playlists_test.py
2011-04-25 15:05:33 +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
Thomas Adamcik
3a44f130aa Refactor shoutcast tests 2011-04-25 01:30:48 +02:00
Thomas Adamcik
b58436aaf3 Use audioconvert to ensure that volume element is handeled 2011-04-25 01:30:47 +02:00
Thomas Adamcik
a81113e1a7 Add _build_shoutcast_description to construct shoutcast bin 2011-04-25 01:30:47 +02:00
Thomas Adamcik
0b91b26910 Check if creation of IPv6 sockets works before using it (fixes #75) 2011-04-23 18:15:28 +02:00
Thomas Adamcik
f20b3b26f6 Add platform and python information to startup logging (fixes #73) 2011-04-23 15:08:03 +02:00
Stein Magnus Jodal
2a3b6f2133 Replace symlinks with real files (fixes #68) 2011-04-11 22:47:49 +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
342c13f811 Fix 'song: None' in 'status' response 2011-04-06 22:40:50 +02:00
Stein Magnus Jodal
ba738b5c1e Add missing tests for eq/ne of Playlist 2011-04-06 18:36:14 +02:00
Stein Magnus Jodal
005260eb9c Add __repr__ to ImmutableObject to get better output from failed model comparisions in tests 2011-04-06 18:18:00 +02:00
Stein Magnus Jodal
037da6f460 Remove Playlist._tracks workaround 2011-04-06 18:01:33 +02:00
Stein Magnus Jodal
fce5964395 Remove Track._artists workaround 2011-04-06 17:54:12 +02:00
Stein Magnus Jodal
9499250a7f Remove Album._artists workaround 2011-04-06 17:51:36 +02:00
Stein Magnus Jodal
dec1643e7f Merge remote-tracking branch 'grunskis/develop' into develop 2011-04-05 21:37:21 +02:00
Stein Magnus Jodal
4703783eed Upgrade to work with final release of Pykka 0.12 2011-03-30 23:28:54 +02:00
Stein Magnus Jodal
4452957c10 Require Pykka 0.12 (not released yet) 2011-03-30 00:39:19 +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
20e55873e9 Update MPD/command list 2011-03-20 01:10:32 +01:00
Stein Magnus Jodal
f0ebc24234 Update MPD/stored playlists 2011-03-20 01:04:18 +01:00
Stein Magnus Jodal
289cefc53a Update MPD/stickers 2011-03-20 00:58:13 +01:00
Stein Magnus Jodal
0de8d1b4b8 Update MPD/status 2011-03-20 00:56:43 +01:00
Stein Magnus Jodal
f73268c332 Update MPD/server 2011-03-20 00:38:09 +01:00
Stein Magnus Jodal
21153dd52b Update MPD/regression tests 2011-03-20 00:29:43 +01:00
Stein Magnus Jodal
2e1ea8080e Update MPD/reflection 2011-03-20 00:21:43 +01:00
Stein Magnus Jodal
cbe727d2bd Update MPD/playback 2011-03-20 00:19:30 +01:00
Stein Magnus Jodal
1048795f2b Update working MPD tests to start mixer actor 2011-03-20 00:17:31 +01:00
Stein Magnus Jodal
517a2a9356 Update MPD/music_db 2011-03-19 18:05:09 +01:00
Stein Magnus Jodal
4e82730732 Update MPD/dispatcher 2011-03-19 17:57:06 +01:00
Stein Magnus Jodal
0d57a74cb3 Update MPD/current_playlist 2011-03-19 17:55:05 +01:00
Stein Magnus Jodal
88780c717b Update MPD/connection 2011-03-19 17:55:00 +01:00
Stein Magnus Jodal
a4a015af1d Update MPD/audio_output 2011-03-19 17:54:57 +01:00
Stein Magnus Jodal
122e13be85 Fix mixer tests 2011-03-10 23:23:46 +01:00
Stein Magnus Jodal
0c6ad8e8f0 Fix output tests 2011-03-10 23:23:06 +01:00
Stein Magnus Jodal
46c6ee68df Fix ~200 backend tests 2011-03-10 23:19:44 +01:00
Stein Magnus Jodal
b89150f5d2 Skip tests instead of commenting them out 2011-02-12 02:21:38 +01:00
Stein Magnus Jodal
163ead53da Add 'play -1' support when playing 2011-02-12 02:03:18 +01:00
Stein Magnus Jodal
15c992e06a Add 'play -1' support, which fixes resume in MPoD 2011-02-12 01:45:36 +01:00
Stein Magnus Jodal
2463fdd945 Fix test that was declared twice 2011-02-12 01:38:44 +01:00
Martins Grunskis
159831c6e7 mopidy-scan fails if track has no artist name
stack trace:

    Traceback (most recent call last):
      File ./scan, line 27, in <module>
        for a in tracks_to_tag_cache_format(tracks):
      File /home/martins/source/mopidy/mopidy/frontends/mpd/translator.py, line 138, in tracks_to_tag_cache_format
        _add_to_tag_cache(result, *tracks_to_directory_tree(tracks))
      File /home/martins/source/mopidy/mopidy/frontends/mpd/translator.py, line 151, in _add_to_tag_cache
        _add_to_tag_cache(result, *entry)
      File /home/martins/source/mopidy/mopidy/frontends/mpd/translator.py, line 156, in _add_to_tag_cache
        track_result = dict(track_to_mpd_format(track))
      File /home/martins/source/mopidy/mopidy/frontends/mpd/translator.py, line 28, in track_to_mpd_format
        ('Artist', artists_to_mpd_format(track.artists)),
      File /home/martins/source/mopidy/mopidy/frontends/mpd/translator.py, line 88, in artists_to_mpd_format
        return u', '.join([a.name for a in artists if a])
    TypeError: sequence item 0: expected string or Unicode, NoneType found
2011-02-09 18:48:15 +02:00
Stein Magnus Jodal
e150a24dfe Review patch for GH-63
- Moved mask_value_if_secret til after the method using it. Most
  important/interesting method first, lower level/more detailed later.
- Made the logic in mask_value_if_secret simpler to understand, I think,
  by making the two different cases more obvious.
- Split the test in two, as it actually tested two different cases.
- Changed the test names to explain what should happen, and not just
  what is tested.
- Add a new test that tests the case which caused the crash: a setting
  being None.
2011-02-09 17:08:40 +01:00
Martins Grunskis
f33c65ddfe mopidy --list-settings fails on fresh install 2011-02-09 17:05:29 +02:00
Stein Magnus Jodal
5e87dcbfff Add 'date' query support to 'find' and 'search' to improve ncmpcpp media library browsing 2011-01-28 11:52:18 +01:00
Stein Magnus Jodal
11edbc160b Special case get_version() to include git revision id if we're running from a git repo 2011-01-25 22:03:28 +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
a8c43d057f Merge branch 'master' into develop
Conflicts:
	docs/changes.rst
	mopidy/__init__.py
	tests/version_test.py
2011-01-22 14:39:15 +01:00
Stein Magnus Jodal
2512f468f4 Bump version number to 0.3.1 2011-01-22 14:33:39 +01:00
Stein Magnus Jodal
2bef4f2e49 Ready for v0.4.0 development 2011-01-22 14:03:13 +01:00
Stein Magnus Jodal
e1197ed84c Change default value of MPD_SERVER_PASSWORD from False to None 2011-01-21 16:31:35 +01:00
Stein Magnus Jodal
7f4ce3be8a Fix SettingsProxy.__getattr__ to support settings that are None or 0. 2011-01-21 16:29:04 +01:00
Stein Magnus Jodal
bf46b73b64 Fix typo in variable name 2011-01-21 16:05:04 +01:00
Stein Magnus Jodal
775ec64976 Test and improve password handling in MpdSession 2011-01-21 02:15:27 +01:00
Stein Magnus Jodal
8f0e00e1d7 Implement 'password' command which will be reached post-auth 2011-01-21 00:17:01 +01:00
Stein Magnus Jodal
a9461df4a0 Merge branch 'develop' into feature/multi-backend 2011-01-11 22:10:40 +01:00
Stein Magnus Jodal
3eb1d47765 Fix seek for Droid MPD 2011-01-09 23:46:03 +01:00
Stein Magnus Jodal
469e5fa189 Fix volume setting for Droid MPD 2011-01-09 23:38:46 +01:00
Stein Magnus Jodal
827940a977 Update Git repo references in tests 2010-11-23 09:39:40 +01:00
Stein Magnus Jodal
be225c23f1 Simplify DummyBackend instantiation 2010-11-03 23:31:11 +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
Stein Magnus Jodal
13ece43363 Split BaseLibraryController in controller and provider 2010-11-02 23:08:54 +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
89b46af983 Add musicbrainz_tag_cache that was missing 2010-11-02 17:43:32 +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
Thomas Adamcik
37222d66f5 Add albumartistid to frontent 2010-11-02 01:00:11 +01:00
Thomas Adamcik
90fbf69b85 Add albumartistid to scanner 2010-11-02 01:00:00 +01:00
Thomas Adamcik
31933c2c2f Fix musicbrainz support in mpd format track 2010-11-02 00:43:03 +01:00
Thomas Adamcik
e7a7d342b8 Add tests for musicbrainz in mpd formated tracks 2010-11-02 00:36:01 +01:00
Thomas Adamcik
988ff66c5e Add musicbrainz support to scanner translator 2010-11-02 00:36:01 +01:00
Thomas Adamcik
5974d696f1 Refactor mpd formater test 2010-11-02 00:36:01 +01:00
Thomas Adamcik
edb2f060c4 Add musicbrainz to models 2010-11-02 00:36:01 +01:00
Thomas Adamcik
d05e48c439 Add generic copy method to models (including tests) 2010-11-02 00:35:27 +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
dd25fadd8b Track result should contain key 2010-11-01 23:23:59 +01:00
Thomas Adamcik
8bfa7d2937 Update tag cache code so it adds mtime and file that is relative 2010-11-01 23:16:49 +01:00
Thomas Adamcik
4ac1d8d217 Remove mtime and key from track_to_mpd_format 2010-11-01 23:09:21 +01:00
Thomas Adamcik
d4437d5adc Decode all data from tag_cache as utf-8 2010-11-01 23:06:45 +01:00
Thomas Adamcik
913bac3b0d Rename with_ to copy 2010-11-01 00:56:06 +01:00
Thomas Adamcik
fe309d374e Get rid of all kinds of abspath and expandpath usage that is no longer needed 2010-11-01 00:37:55 +01:00
Thomas Adamcik
c513d0f6e7 Rename settings that have dirs or file to _PATH and _FILE 2010-11-01 00:37:55 +01:00
Thomas Adamcik
3661800563 Add _FILE handling 2010-11-01 00:37:55 +01:00
Thomas Adamcik
e8371129f7 Add test to ensure that other values are not expanded 2010-11-01 00:37:55 +01:00
Thomas Adamcik
70fe571b05 Add special casing of _PATH settings 2010-11-01 00:37:55 +01:00
Stein Magnus Jodal
094444eae8 Merge branch 'develop' into feature/multi-backend 2010-10-31 15:23:27 +01:00
Stein Magnus Jodal
5dc35eaad4 Fix broken symlinks 2010-10-31 02:50:53 +02:00
Stein Magnus Jodal
75639fab99 Merge branch 'develop' into feature/multi-backend 2010-10-31 02:37:22 +02:00
Thomas Adamcik
dd259d0797 Ensure that find_files only returns unicode 2010-10-30 23:12:32 +02:00
Thomas Adamcik
357591e97e Introduce concept of mpd ordered track info for simpler diffing of tag caches 2010-10-30 21:53:59 +02:00
Thomas Adamcik
b9976c4cda Remove uri_to_mpd_relative_path 2010-10-30 21:26:08 +02:00
Thomas Adamcik
d67bfb9aee Use new mtime helper 2010-10-30 20:58:41 +02:00
Thomas Adamcik
92333208de Add mopidy.utils.path.mtime helper that is easily faked in tests 2010-10-30 20:53:23 +02:00
Thomas Adamcik
9a99bc46bf Add album artist to track to mpd format 2010-10-30 20:46:47 +02:00
Thomas Adamcik
6049c7a094 Turn track_artists_to_mpd_format into artists_to_mpd_format 2010-10-30 20:41:45 +02:00
Thomas Adamcik
8a4dc1033b Add album-artist support to translator 2010-10-30 20:38:33 +02:00
Thomas Adamcik
52ab538fc4 Minor test cleanup 2010-10-30 20:38:20 +02:00
Thomas Adamcik
ea74f539ba Fix mistakes in tag cache generation 2010-10-30 01:06:26 +02:00
Thomas Adamcik
d2d8e4c090 Use expanduser for find_files 2010-10-30 00:45:08 +02:00
Thomas Adamcik
96d4633306 Ensure that key does not have uri encoded strings 2010-10-30 00:40:01 +02:00
Thomas Adamcik
ca95a510c9 Ensure that mtime is included 2010-10-30 00:37:42 +02:00
Thomas Adamcik
7559426c50 Add test for files in multiple directories 2010-10-29 23:56:01 +02:00
Thomas Adamcik
93eda1c81e Extra test for multiple top level files 2010-10-29 23:46:40 +02:00
Thomas Adamcik
6b99416830 Add test for sub sub dirs in tag cache generator 2010-10-29 23:43:49 +02:00
Thomas Adamcik
94db967672 Tag cache seems to support directories now 2010-10-29 23:26:05 +02:00
Thomas Adamcik
1a6831ab68 Add tracks_to_directory_tree helper 2010-10-29 23:06:58 +02:00
Thomas Adamcik
a48e881040 Add split path util 2010-10-29 22:55:42 +02:00
Thomas Adamcik
8d1339ef7f Add option to get mtime set in translator 2010-10-29 22:18:35 +02:00
Thomas Adamcik
d785b9b14e Added uri_to_path with tests 2010-10-29 22:16:33 +02:00
Thomas Adamcik
21eadf3dc7 Refactor tag_cache generation tests 2010-10-29 21:56:20 +02:00
Thomas Adamcik
a8a447c47f Use key=True for track_to_mpd_format generation 2010-10-29 21:36:11 +02:00
Thomas Adamcik
b2cb3136b2 Rename tests 2010-10-29 21:27:40 +02:00
Thomas Adamcik
488ac28431 Add key parameter to track_to_mpd_format 2010-10-29 21:25:02 +02:00
Thomas Adamcik
151b1c3b4e Add explicit tests for position and cpid in track_to_mpd_format 2010-10-29 21:23:15 +02:00
Thomas Adamcik
cf516c5ef0 Ensure that mpd_format_track handles file: properly 2010-10-29 21:17:08 +02:00
Thomas Adamcik
014e29ffa2 Fix uri_to_mpd_relative_path so that it handles None 2010-10-29 21:15:32 +02:00
Thomas Adamcik
44012b30b0 Add uri_to_mpd_relative_path 2010-10-29 20:33:13 +02:00
Thomas Adamcik
02df8ca033 Start writting tracks_to_tag_cache_format 2010-10-29 20:04:53 +02:00
Thomas Adamcik
3e595213ac Ensure that result has exact right number of elements 2010-10-29 19:34:33 +02:00
Thomas Adamcik
ab97f78060 Test all optional translator values 2010-10-28 01:12:20 +02:00
Thomas Adamcik
766c447c71 Refactor translator test 2010-10-28 01:04:18 +02:00
Thomas Adamcik
d9d393ac21 Ensure that scanner does not die on non-existant folders 2010-10-28 00:47:18 +02:00
Thomas Adamcik
2ebaa38ed9 Add other media test and set caps to limit to audio for scanner 2010-10-28 00:40:38 +02:00
Thomas Adamcik
889b8fdb43 Add length to scanner translator 2010-10-27 00:17:03 +02:00
Thomas Adamcik
79887c1988 Add duration to scanner data 2010-10-27 00:15:26 +02:00
Thomas Adamcik
045a5a58c5 Move uri to scanner data 2010-10-26 23:41:12 +02:00
Thomas Adamcik
7e02617422 Move test data in translator test 2010-10-26 23:34:10 +02:00
Thomas Adamcik
9098f3104c Rename scanner test filename 2010-10-26 23:14:08 +02:00
Thomas Adamcik
b76ae84af2 Add basic scanner translator and test 2010-10-26 23:13:45 +02:00
Thomas Adamcik
1551723dd7 Merge branch 'develop' into feature/file-scanner 2010-10-26 22:22:06 +02:00
Thomas Adamcik
71e2f2c43a Add mpd generated sample tag caches 2010-10-26 21:51:22 +02:00
Thomas Adamcik
8b963311e1 Update scanner test 2010-10-26 21:38:46 +02:00
Thomas Adamcik
23881e1b1d Add basic test structure for scanner testing 2010-10-26 21:33:12 +02:00
Stein Magnus Jodal
704b5517e1 Split xPlaybackController into xPlaybackController and xPlaybackProvider 2010-10-26 13:25:52 +02:00
Thomas Adamcik
02bfad2fe4 Add basic tests for scanner 2010-10-26 00:13:50 +02:00
Thomas Adamcik
efc60a943b Update find files behaviour and add test for it 2010-10-26 00:08:51 +02:00
Thomas Adamcik
21123e3cd9 Allow scanner to stop nicely when it runs out of files 2010-10-25 23:18:41 +02:00
Stein Magnus Jodal
a68bd4b475 Ready for 0.3.0 development 2010-10-24 22:28:50 +02:00
Stein Magnus Jodal
c9535ffe10 Setting the state to STOPPED right before starting a track makes the test fail as it should 2010-10-24 20:40:47 +02:00
Stein Magnus Jodal
24015cafa8 Merge branch 'develop' into feature/playid-minus-one-should-resume 2010-10-24 20:15:34 +02:00
Stein Magnus Jodal
1734a2e2f0 Next version will be 0.2.0 2010-10-21 23:56:26 +02:00
Stein Magnus Jodal
37426c6b54 Formatting 2010-10-21 23:32:36 +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
3cfc282acc Add regression test for GH-22 2010-10-21 23:11:36 +02:00
Stein Magnus Jodal
abe54aacb0 Merge branch 'release/0.1.1' into develop
Conflicts:
	docs/changes.rst
2010-10-21 22:30:39 +02:00
Stein Magnus Jodal
e2a4aaada7 Add regression test for GH-17 2010-10-21 22:11:24 +02:00
Stein Magnus Jodal
51065c5e0a Merge branch 'hotfix/GH-18' into develop
Conflicts:
	mopidy/backends/base/playback.py
2010-10-19 12:43:20 +02:00
Stein Magnus Jodal
e4c3a73f8f Merge branch 'hotfix/GH-18' into release/0.1.1 2010-10-19 12:42:26 +02:00
Stein Magnus Jodal
3a951ca948 Seed the random function to make the test predictable 2010-10-19 12:41:18 +02:00
Stein Magnus Jodal
5cdfbce122 Add regression test for GH-18 2010-10-04 23:18:32 +02:00
Stein Magnus Jodal
6dbb550f98 Merge branch 'feature/fix-mpd-list' into develop 2010-10-04 22:27:18 +02:00
Stein Magnus Jodal
8fe261322f Add test to check that "playid -1" resume playback
The problem is, the test shouldn't pass, but it does.
2010-10-04 22:17:03 +02:00
Stein Magnus Jodal
9b73cbb18d Add more tests to prove the new 'list' query hendling 2010-08-28 16:27:28 +02:00
Stein Magnus Jodal
4b4c4b709e Rewrite list command to support more advanced queries 2010-08-28 16:07:44 +02:00
Stein Magnus Jodal
d6798ac870 Fix GH-16: 'addid ""' crashes with SpotifyError 2010-08-26 19:04:13 +02:00
Stein Magnus Jodal
c89d58fccf Fix 'add ' and 'addid ' 2010-08-24 23:11:22 +02:00
Stein Magnus Jodal
6930e7a9ad Merge 'develop' into 'feature/encapsulate-queues' 2010-08-24 01:13:00 +02:00
Stein Magnus Jodal
abce165aa3 Extend output API with all methods needed for GStreamerOutput 2010-08-24 01:06:20 +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
efe14032ce Fix three more tests 2010-08-23 23:49:59 +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
Thomas Adamcik
947b91aa5c Add basic runtime setting support 2010-08-23 23:30:20 +02:00
Stein Magnus Jodal
f541724ff9 Skip GStreamer tests on Windows 2010-08-23 21:01:29 +02:00
Stein Magnus Jodal
2a582a924f Ready for 0.2 development 2010-08-23 19:15:26 +02:00
Stein Magnus Jodal
00cec3375f Add TODO on testing playlist repeat 2010-08-23 15:16:38 +02:00
Stein Magnus Jodal
9e7723f8ca Update version tests for 0.1.0 2010-08-22 22:08:40 +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
Stein Magnus Jodal
7062e3c8ee Merge branch 'develop' into gstreamer-local-backend 2010-08-21 23:08:37 +02:00
Stein Magnus Jodal
d43ddab590 Fix import in test 2010-08-20 01:24:33 +02:00
Thomas Adamcik
ef03bbe19e Add tests to check return value of seek 2010-08-20 00:17:08 +02:00
Stein Magnus Jodal
10c1cab0c7 Reorganize mopidy.frontends.mpd
- Rename .frontend.MpdFrontend to .dispatcher.MpdDispatcher, as it
  dispatches requests.
- Move exceptions into .exceptions.
- Move .server.MpdSession to .session.MpdSession.
- Move handle_pattern to .protocol.handle_pattern.
2010-08-19 23:51:46 +02:00
Thomas Adamcik
cf24089137 Renable some output tests 2010-08-19 00:52:42 +02:00
Thomas Adamcik
a20251daac Ensure that backend tests setup right backend in setting 2010-08-18 23:41:44 +02:00
Thomas Adamcik
94ef06ac78 Nuke local settings to ensure test consistency 2010-08-18 23:41:13 +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
7d04550f53 Remove unused imports 2010-08-17 02:38:55 +02:00
Stein Magnus Jodal
14b7b080dc Merge remote branch 'knutz3n/gstreamer' into gstreamer 2010-08-17 02:35:55 +02:00
Stein Magnus Jodal
9cb84002bc Report multiple settings errors at once 2010-08-17 01:58:31 +02:00
Stein Magnus Jodal
12e5bc39e3 Add settings validation 2010-08-17 01:45:58 +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
Stein Magnus Jodal
148612d842 Merge remote branch 'knutz3n/add_invalid_url_fix' into gstreamer 2010-08-16 22:38:08 +02:00
Johannes Knutsen
7674775718 Don't call lookup on backends with uris they don't support 2010-08-16 22:34:00 +02:00
Stein Magnus Jodal
73258d6f9d Reimplement 'load' using SPC.get() instead of search() 2010-08-16 22:33:04 +02:00
Stein Magnus Jodal
d7bf31bab4 Rename CurrentPlaylistController.{load => append} 2010-08-16 21:34:06 +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
8e8d840767 Modify changes done in gstreamer-output-testing to keep appsrc working 2010-08-16 19:44:35 +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
b7030b127a MPD: Fix 'play[id] -1' behaviour when current track is set 2010-08-14 21:58:39 +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
Stein Magnus Jodal
4bea82c2f1 Shrink audio test data 2010-08-14 19:03:37 +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
f5b6d0e994 Switch to using playbin in order to get simple base case working 2010-08-14 18:29:33 +02:00
Thomas Adamcik
48dc3137d5 Merge branch 'gstreamer' of git://github.com/jodal/mopidy into gstreamer-local-backend 2010-08-14 18:20:36 +02:00
Stein Magnus Jodal
074976d9f3 Test MIXER_MAX_VOLUME and fix detected bugs 2010-08-14 18:18:15 +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
Thomas Adamcik
8824227b19 Merge branch 'gstreamer' into gstreamer-output-testing 2010-08-14 16:08:04 +02:00
Thomas Adamcik
9196140999 Add placeholder for possible set_state test 2010-08-14 16:07:46 +02:00
Johannes Knutsen
00f59e590b test seek with songpos 2010-08-14 16:00:06 +02:00
Johannes Knutsen
8599bcd491 test seekid updates cpid 2010-08-14 15:59:46 +02:00
Thomas Adamcik
7db0bd25fd Add basic volume tests for gstreamer output 2010-08-14 15:56:00 +02:00
Johannes Knutsen
fe9ad74e1b fixed test_seek and test_seekid 2010-08-14 15:44:05 +02:00
Thomas Adamcik
7ed8563347 Attempt to setup both appsrc and uridecodebin in same pipeline 2010-08-14 15:36:47 +02:00
Thomas Adamcik
419de169c6 Add test_play_uri_non_existing_file for output 2010-08-14 15:26:57 +02:00
Thomas Adamcik
e2bdec5a4b Start adding gstreamer output tests 2010-08-14 15:23:27 +02:00
Stein Magnus Jodal
5d9fd5b625 MPD: Update tests and fix 'playlistfind' 2010-08-14 14:42:44 +02:00
Stein Magnus Jodal
908ad5016f Merge master into gstreamer 2010-08-14 14:30:12 +02:00
Stein Magnus Jodal
abcc9c1007 MPD: Improve seek impl and add seekid impl. Add tests which fails. 2010-08-14 14:10:44 +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
ec67d43fc9 Test both case where class and/or module does not exist for get_class 2010-08-13 22:29:45 +02:00
Thomas Adamcik
e4bdacbb61 Add test_import_error_message_contains_complete_class_path test for get_class 2010-08-13 22:28:02 +02:00
Thomas Adamcik
059f96814d Add basic tests for get_class util 2010-08-13 22:16:11 +02:00
Johannes Knutsen
e1f8a0bf72 Rename mopidy.frontends.mpd.{serializer => translator} to match naming in backends. 2010-08-13 20:48:38 +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
635791cf0e MPD: Support missing quotes for 'consume', 'random', 'repeat', and
'single' to work with BitMPC.
2010-08-13 13:33:15 +02:00
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