Commit Graph

375 Commits

Author SHA1 Message Date
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
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
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
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
c915c197dd Formatting 2012-10-25 22:49:47 +02:00
Stein Magnus Jodal
ac60bcdf8e Fix all flake8 warnings in tests (#211) 2012-10-16 14:43:31 +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
b3f3cfe2a0 Use assert{Less,Greater}[EEqual] in tests 2012-09-25 11:18:26 +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
Stein Magnus Jodal
a8d1d41ab3 Use assertIn and assertNotIn in tests 2012-09-15 17:46:25 +02:00
Stein Magnus Jodal
2ba05f9405 Add PlaybackState enum 2012-09-14 01:17:55 +02:00
Stein Magnus Jodal
aab37302a1 Rename mopidy.gstreamer to mopidy.audio 2012-09-14 01:05:42 +02:00
Stein Magnus Jodal
dbf7030d5b Fix crash in local backend when looking up unknown path 2012-09-11 23:23:36 +02:00
Stein Magnus Jodal
b0698d2e0a Add slice() method to CurrentPlaylistController to reduce copying of the playlist 2011-12-28 02:38:07 +01:00
Stein Magnus Jodal
cda2fbbe96 Add index() method to CurrentPlaylistController to reduce copying of the playlist 2011-12-28 01:55:02 +01:00
Stein Magnus Jodal
c5a4bb0e22 Rename tracks_len to length, and add test 2011-12-27 22:31:50 +01:00
Thomas Adamcik
92a2408ace Remove some unused imports 2011-07-31 22:27:10 +02:00
Thomas Adamcik
1985b4af76 Switch all tests over to from tests import unittest, which will be unittest2 on < 2.7 and plain unittest otherwise 2011-07-31 22:21:34 +02:00
Stein Magnus Jodal
662a17e7ba Use mock.patch instead of assigning a mock to the imported module 2011-07-31 17:05:18 +02:00
Stein Magnus Jodal
bd8471b353 Convert from listener impl to mock for testing actually emitting of events 2011-07-28 01:54:42 +02:00
Stein Magnus Jodal
596d29ebf6 Test that seek() emits seeked event 2011-07-28 01:17:39 +02:00
Stein Magnus Jodal
7a2984528c Merge branch 'develop' into feature/mpris-frontend
Conflicts:
	mopidy/backends/base/playback.py
	mopidy/listeners.py
	tests/backends/events_test.py
	tests/listeners_test.py
2011-07-27 00:19:04 +02:00
Thomas Adamcik
215ed61b0b Update existing listener events to reflect that they only notify about track changes 2011-07-19 03:44:46 +02:00
Stein Magnus Jodal
a8459c1d9b Merge branch 'develop' into feature/mpris-frontend 2011-07-17 23:57:32 +02:00
Stein Magnus Jodal
2b5f942f44 Don't use asserts new in unittest2/Python 2.7 2011-07-04 19:04:57 +02:00
Stein Magnus Jodal
5c325b03a1 Change stopped_playing event arg from stop_position to time_position 2011-06-29 17:36:39 +03:00
Stein Magnus Jodal
ad246706c6 Add paused_playing and resumed_playing events 2011-06-29 17:33:19 +03:00
Stein Magnus Jodal
0e8fb5e7ac Change stopped_playing event arg from stop_position to time_position 2011-06-29 17:33:12 +03:00
Stein Magnus Jodal
8386381479 Test that backend actually sends the events 2011-06-29 17:33:12 +03:00
Stein Magnus Jodal
213796305b Test that backend actually sends the events 2011-06-29 16:22:28 +03:00
Stein Magnus Jodal
622a99ad3b Change uri_handlers to uri_schemes on backends 2011-06-27 18:02:02 +03:00
Stein Magnus Jodal
3f325c936d Change uri_handlers to uri_schemes on backends 2011-06-22 00:04:02 +03:00
Stein Magnus Jodal
61375f0edc Merge branch 'develop' into feature/mpris-frontend
Conflicts:
	docs/changes.rst
2011-06-07 02:30:01 +02:00
Stein Magnus Jodal
1e73e7bbf7 Make mpris.Previous() state change tests pass 2011-06-07 00:08:48 +02:00
Stein Magnus Jodal
3f97f3f78b Convert cp_track from tuple to namedtuple, to get more readable code 2011-06-04 20:46:34 +02:00
Thomas Adamcik
472e4d2790 Rename output to gstreamer in backends 2011-04-25 21:30:01 +02:00
Thomas Adamcik
4a1df118fb Move GStreamerOutput up one level to mopidy.gstreamer and rename to GStreamer 2011-04-25 01:31:28 +02:00
Thomas Adamcik
7016a20811 Kill of BaseOutput 2011-04-25 01:31:28 +02:00
Stein Magnus Jodal
79771d6e2c Rename data_folder() to path_to_data_dir() 2011-04-07 15:55:03 +02:00
Stein Magnus Jodal
b83dad7845 Update tests to match change in previous commit 2011-03-21 00:34:54 +01:00
Stein Magnus Jodal
46c6ee68df Fix ~200 backend tests 2011-03-10 23:19:44 +01:00
Stein Magnus Jodal
c097af1a83 Fix a bunch of pylint errors/warnings in test suite 2011-01-23 18:39:05 +01:00