Stein Magnus Jodal
6afd5b0c70
Fix tests and update changelog
2016-01-01 23:13:42 +01:00
Stein Magnus Jodal
a16a2c5a1b
tests: Fix test made flaky by lsinfo Last-Modified change
2015-08-07 15:35:07 +02:00
Stein Magnus Jodal
c8d31e94b7
mpd: Faster playlist listing
2015-08-06 01:06:43 +02:00
Mark Greenwood
9649dc0777
list order in python is not deterministic, hence had to change the test
2015-07-26 13:57:46 +01:00
Mark Greenwood
310fcdf0ef
Unexpected test failure fixed
2015-07-26 13:04:33 +01:00
Mark Greenwood
8106399598
Simplify the whole thing by using taglist types and not bothering with the
...
config option or command to switch it on
2015-07-26 12:55:46 +01:00
Stein Magnus Jodal
70cfc0b33a
mpd: PR #1235 tweaks, add changelog
2015-07-26 12:12:15 +02:00
EricJahn
e0dc26f958
Fix #1045
...
Filter all empty tagtypes in MPD protocol handlers.
In addition return the tagtype list from the mpd protocol command.
2015-07-25 16:56:34 +02:00
Stein Magnus Jodal
6cb48f29ce
mpd: Simplify Last-Modified test, update changelog
2015-07-22 11:21:04 +02:00
Stein Magnus Jodal
1d77bc74e2
Merge pull request #1219 from fatg3erman/fix/1218-last-modified-for-mpd
...
Fix #1218
2015-07-22 11:12:30 +02:00
Mark Greenwood
eab3076235
Add test for track.last_modified = 0
2015-07-21 21:13:38 +01:00
Mark Greenwood
6ed9b07aaa
Fix #1218
...
Output the last_modified timestamp from mopidy's track model to mpd clients
in the same format as mpd uses - yyyy-mm-ddTHH:MM:SS
Outputs nothing for Last-Modified if last_modified is None or zero
This commit uses UTC time, adds a 'Z' to end, and updates the test accordingly
2015-07-21 18:20:17 +01:00
Stein Magnus Jodal
c88cf5ee82
mpd: Add listfiles command skeleton
2015-07-21 15:04:29 +02:00
Stein Magnus Jodal
2135b1372a
mpd: Add mount/unmount/listmounts/listneighbors command skeletons
2015-07-21 14:50:51 +02:00
Stein Magnus Jodal
21a3b74e9b
mpd: Add addtagid/cleartagid command skeleton
2015-07-21 14:30:18 +02:00
Stein Magnus Jodal
0a662c42b0
mpd: Add prio/prioid command skeleton
2015-07-21 14:18:28 +02:00
Stein Magnus Jodal
7b711e4dac
mpd: Add rangeid command skeleton
2015-07-21 14:12:01 +02:00
Thomas Adamcik
1a967d3d22
mpd: Add tests for stream title handling
2015-07-20 19:25:39 +02:00
Ronald Zielaznicki
82ed660777
Add core config values to relevent test cases.
2015-07-19 23:05:39 -04:00
Stein Magnus Jodal
87bf261345
tests: Fix typo in mock usage
...
The error was made evident by a newer mock version that no longer
swallowed the wrong assert as regular use of a spec-less mock.
2015-07-16 21:33:02 +02:00
Mark Greenwood
38ca65a0b6
Fix #1218 - Last-Modified timestamp for tracks
...
Don't know why the Travis build failed, it's passing for me
2015-07-13 06:43:46 +01:00
Mark Greenwood
6d2ac7a100
Fix #1218
...
Output a track's Last-Modified stamp in ISO 8601 format, as MPD does.
Output nothing if track has no last-modified stamp.
The test has to use datetime to work out what the output will look like,
because it is local-time zone dependant.
2015-07-13 06:35:34 +01:00
Mark Greenwood
5c6ab0846e
Fix #1218
...
Output the last_modified timestamp from mopidy's track model to mpd clients
in the same format as mpd uses - yyyy-mm-ddTHH:MM:SS
Outputs nothing for Last-Modified if last_modified is None
2015-07-12 21:39:27 +01:00
Mark Greenwood
f3f140c19f
mpd:Update protocol to 0.19
...
Address issues raised in review:
Fix formatting by shortening function name to concat_multi_values
Change comments and variable names to reflect generic nature of function
Fix typos in tests
Default to single quotes for strings
2015-07-06 09:26:52 +01:00
Mark Greenwood
a2f2d5f167
mpd:Update protocol to 0.19
...
Update tests to reflect new function names
2015-07-05 13:40:45 +01:00
Stein Magnus Jodal
749c8baceb
Merge branch 'v1.0.x' into develop
...
Conflicts:
mopidy/core/library.py
tests/core/test_playback.py
2015-06-25 23:15:35 +02:00
Naglis Jonaitis
feb9963a8e
mpd: Ignore tracks without length in the "count" command
2015-05-28 01:40:38 +03:00
Thomas Adamcik
2b3e976bc9
core: Update title distinct name to track
2015-05-20 23:14:46 +02:00
Stein Magnus Jodal
d8bcd7f273
Rename mopidy.utils to mopidy.internal
2015-05-07 23:15:56 +02:00
Thomas Adamcik
651e89357f
tests: Fix IssueGH1120RegressionTest flakiness
2015-04-26 23:23:30 +02:00
Thomas Adamcik
b3ea425fd0
tests: Fix IssueGH1120RegressionTest flakiness
2015-04-24 19:26:02 +02:00
Stein Magnus Jodal
3dba4f4208
Merge branch 'v1.0.x' into develop
2015-04-23 23:40:04 +02:00
Thomas Adamcik
d4c695ac75
mpd: Split browse and playlist name to uri caching
2015-04-23 23:08:25 +02:00
Thomas Adamcik
efad50c253
cleanup: Stop using deprecated copy()
2015-04-17 00:00:58 +02:00
Thomas Adamcik
1b10a783d3
mpd: Update tests to use setters and actual booleans
2015-04-13 00:16:09 +02:00
Thomas Adamcik
9b442e1563
review: Address review comments
2015-04-06 23:27:46 +02:00
Thomas Adamcik
8f96bf0f39
tests: Fix some model use oddities
2015-04-05 13:08:15 +02:00
Stein Magnus Jodal
c4940cbea2
autopep8: Add space after class signature/docstring
2015-04-03 00:05:26 +02:00
Thomas Adamcik
9ede14f4a1
tests: Convert to using deprecation helpers across the board.
2015-03-30 23:50:54 +02:00
Thomas Adamcik
c85689edad
mpd: Make mpd warnings safe with respect to tracklist.add(tracks=...)
2015-03-29 23:11:00 +02:00
Thomas Adamcik
f7399c1849
tests: Stop using playlist filters in mpd music_db tests
2015-03-29 23:11:00 +02:00
Thomas Adamcik
79b0584887
tests: Stop using tracklist add tracks in mpd status test
2015-03-29 23:11:00 +02:00
Thomas Adamcik
7d42d028c6
tests: Stop using tracklist tracks in mpd playback tests
2015-03-29 23:11:00 +02:00
Thomas Adamcik
faf8174ef7
tests: Update mpd.test_status to not use tracklist.add(tracks=...)
2015-03-29 23:11:00 +02:00
Thomas Adamcik
a8860faa35
tests: Cleanup mpd.protocol.current_playlist tests
...
- Split into smaller test cases more or less per command
- Created a BasePopulatedTracklistTestCase with a sensible setUp
- Modified test cases to work with the common tracklist state
- Replaced all calls to tracklist.add(tracks=...) with uris=...
- Test tracklist ordering in more compact way that also gives better error
messages
2015-03-29 23:11:00 +02:00
Thomas Adamcik
b31f0c421f
tests: Make tests warning safe
2015-03-26 21:58:44 +01:00
Stein Magnus Jodal
2c11344434
dummy: Make it obvious that method is test-only
2015-03-25 13:16:27 +01:00
Stein Magnus Jodal
f2a56edbf0
dummy: Replace playlists property with test-only helper
2015-03-25 00:03:56 +01:00
Stein Magnus Jodal
0f21e7425e
Merge pull request #1039 from adamcik/bug/923/duration-as-int-or-none
...
core: Correctly handle missing duration in seek.
2015-03-15 21:26:16 +01:00
Thomas Adamcik
6adeea6009
core: Correctly handle missing duration in seek.
...
Seeks will now fail when the duration is None, this is an approximation to if
the track is seekable or not. This check is need as otherwise seeking a radio
stream will trigger the next track.
If the track truly isn't seekable despite having a duration we should still
fail as GStreamer will reject the seek.
2015-03-15 11:29:07 +01:00