Naglis Jonaitis
feb9963a8e
mpd: Ignore tracks without length in the "count" command
2015-05-28 01:40:38 +03:00
Stein Magnus Jodal
10b0796bbd
Merge branch 'v1.0.x' into develop
2015-05-19 22:08:56 +02:00
Stein Magnus Jodal
b0a776114d
Bump version to 1.0.5
2015-05-19 22:05:20 +02:00
Stein Magnus Jodal
ad449a879d
Merge pull request #1178 from adamcik/feature/robust-startup-part1
...
Make initial bootstrapping handle bad extensions
2015-05-12 23:43:11 +02:00
Thomas Adamcik
d630a97bc1
ext: Refactor tests based on review comments
2015-05-12 22:00:31 +02:00
Thomas Adamcik
8b6553ec16
ext: Update validate_extension to validate_extension_data
...
Adds more checks to catch extension errors and importantly tests for exercise
these code paths.
2015-05-11 22:30:50 +02:00
Thomas Adamcik
4566ddd9ae
ext: Add exception logging to extension loading
2015-05-11 21:29:03 +02:00
Thomas Adamcik
8ed9e5f1e0
ext: Catch exceptions in extension helpers
2015-05-11 21:20:37 +02:00
Thomas Adamcik
8434a22c83
ext: Switch to using fixtures for mocking
2015-05-11 20:53:50 +02:00
Thomas Adamcik
5550785146
ext: Wrap extension state in a ExtensionData tuple
...
This allows us to do more of the data loading that might fail safely in the
mopidy.ext module instead of having things spread all over the place.
Note that only minimal changes have been made to __main__ to make things work.
Further refactoring should follow.
2015-05-11 00:33:41 +02:00
Thomas Adamcik
5937cdc3b2
ext: Add tests for validate_extension and handle validate_environment failures
2015-05-10 23:15:13 +02:00
Thomas Adamcik
c4e18f4218
ext: Add ext.load_extensions tests and basic error handling
2015-05-10 23:00:13 +02:00
Thomas Adamcik
f814e945d3
tests: Convert ext test to pytests
2015-05-10 21:49:04 +02:00
Thomas Kemmer
ea5dff109e
m3u: Fix encoding error when saving playlists with non-ASCII track titles.
2015-05-10 20:57:39 +02:00
Thomas Adamcik
95dc30288c
httpclient: Fix import in tests
2015-05-09 00:52:29 +02:00
Thomas Adamcik
f6f445e4b6
Merge branch 'develop' into feature/http-helpers
...
Conflicts:
docs/changelog.rst
2015-05-09 00:45:09 +02:00
Thomas Adamcik
382aa0a775
httpclient: Move to top level module
2015-05-09 00:44:16 +02:00
Stein Magnus Jodal
c59784c1e8
local: Add path_to_file_uri()
2015-05-08 00:55:03 +02:00
Stein Magnus Jodal
56cffa0089
local: Test path_to_local_{directory,track}()
2015-05-08 00:55:03 +02:00
Stein Magnus Jodal
4d5b485760
local: Add local_uri_to_file_uri()
...
Which replaces local_track_uri_to_file_uri() and also handles
local:directory: URIs.
2015-05-08 00:55:03 +02:00
Stein Magnus Jodal
d8bcd7f273
Rename mopidy.utils to mopidy.internal
2015-05-07 23:15:56 +02:00
Thomas Adamcik
af4e7c8a4e
Merge branch 'develop' into feature/core-dont-trust-backends
...
Conflicts:
docs/changelog.rst
2015-05-07 00:15:33 +02:00
Thomas Adamcik
29c66f7bc8
core: Correct volume/mute return values
2015-05-07 00:13:58 +02:00
Thomas Adamcik
4d608dd431
core: Add get_current_tlid shortcut
2015-05-06 23:00:53 +02:00
Thomas Adamcik
cfd4dcb8dd
Merge branch 'develop' into feature/core-dont-trust-backends
...
Note that this merge also updated core.playlists.create to combine the 1.0.5
fix with these changes.
Conflicts:
mopidy/core/playlists.py
2015-05-06 22:44:12 +02:00
Thomas Adamcik
c01f8679bc
core: Address review comments for do not trust backends PR
2015-05-06 22:34:44 +02:00
Stein Magnus Jodal
6d82cdb611
tests: Cleanup reset_mock() usage
2015-05-06 21:06:30 +02:00
Stein Magnus Jodal
a17c413a70
Merge branch v1.0.x into develop
2015-05-06 20:47:52 +02:00
Thomas Kemmer
636639a201
Fix #1162 : Ignore None results and exceptions from PlaylistsProvider.create().
2015-05-06 14:50:21 +02:00
Thomas Adamcik
4aa984207b
tests: Split up core bad backend tests and unify naming
2015-05-06 01:01:12 +02:00
Thomas Adamcik
e7b241e18b
core: Update playlists to handle bad data from backends and exceptions
2015-05-06 00:28:58 +02:00
Thomas Adamcik
3426633c78
core: Make sure we handle bad mixer data and exceptions.
2015-05-05 23:41:46 +02:00
Thomas Adamcik
dd4a8f3b78
core: Make sure library can handle bad data from backends
...
Note that None values are just ignored, while other bad data logs an error
message and is ignored.
2015-05-05 22:55:53 +02:00
Stein Magnus Jodal
746c3059ba
Merge pull request #1160 from adamcik/feature/model-corner-case-handling
...
Move new models features to new class
2015-05-05 08:08:05 +02:00
Thomas Adamcik
b480311d66
models: Add ValidatedImmutableObject and "revert" ImmutableObject
...
Testing with extension that use custom models it was discovered that the
changes to have type safe models were a bit to invasive to be suitable for a
minor release. This change fixes this by bringing back ImmutableObjects in
their old form, and moving the shinny new features to ValidatedImmutableObject.
A subset of the tests for ImmutableObjects have been resurrected to have some
confidence in this working the way we think it should.
2015-05-04 23:41:11 +02:00
Thomas Adamcik
7f6809aebb
models: Explicitly define which models can be deserialized
2015-05-04 22:36:27 +02:00
Thomas Adamcik
07159f69c2
models: Decouple fields tests from the model metaclass
2015-05-04 21:37:17 +02:00
Thomas Adamcik
bb95dc3b9b
models: Make sure parent fields are used by children.
...
Without this change any sub-class would end up with an empty _fields and none
of the actual fields would be writable even internally.
2015-05-03 22:58:43 +02:00
Stein Magnus Jodal
b4a6a4da7f
Merge branch 'v1.0.x' into develop
2015-04-30 08:44:10 +02:00
Stein Magnus Jodal
2f96dacae8
Bump version to 1.0.4
2015-04-30 08:41:03 +02:00
Thomas Adamcik
94039e06dc
models: Make sure sub-classes can extend models
2015-04-29 21:32:43 +02:00
Thomas Adamcik
9182a7870e
utils: Support opting out of adding auth to proxy
2015-04-29 00:38:06 +02:00
Thomas Adamcik
8cf9da3d55
utils: Fix corner case in format_proxy scheme handling
2015-04-29 00:27:56 +02:00
Thomas Adamcik
5153d9e19f
utils: Add format_user_agent helper
2015-04-28 23:51:19 +02:00
Thomas Adamcik
a48aadaaed
utils: Add basic format proxy helper
2015-04-28 23:50:52 +02:00
Thomas Adamcik
8851fb151c
models: Allow Ref.type to have any value
...
This is to address a potential breakage brought up in #1150 as it turns out
Mopidy-Podcast uses custom models and ref types.
2015-04-28 22:58:15 +02:00
Stein Magnus Jodal
97c336200b
Merge branch 'v1.0.x' into develop
2015-04-28 00:02:26 +02:00
Stein Magnus Jodal
9c2aabb899
Bump version to 1.0.3
2015-04-28 00:00:25 +02:00
Stein Magnus Jodal
b14aee3e04
Merge branch 'v1.0.x' into develop
...
Conflicts:
docs/changelog.rst
2015-04-27 00:18:41 +02:00
Stein Magnus Jodal
21289f8fe5
Bump version to 1.0.2
2015-04-27 00:02:12 +02:00