Lasse Bigum
9593da08b6
Rename track in MPD to track_name to avoid confusion
2013-11-02 22:34:26 +01:00
Stein Magnus Jodal
838f584e2b
local: Formatting
2013-11-02 22:18:37 +01:00
Stein Magnus Jodal
b0d43444c2
local: Remove debug logging in tests
2013-11-02 22:18:26 +01:00
Lasse Bigum
f295cbd3cb
Fix flake8 issues
2013-11-02 22:14:25 +01:00
Lasse Bigum
24944bd8e3
Split artist and albumartist dependency, update tests based on this
2013-11-02 22:13:54 +01:00
Lasse Bigum
86f18935fe
Fix flake8 errors and add a few more tests
2013-11-02 21:57:53 +01:00
Lasse Bigum
e7746dac1b
Remove debug, make track_no more robust
2013-11-02 21:54:46 +01:00
Lasse Bigum
efc9fc75b5
Fix track_no
2013-11-02 21:49:44 +01:00
Stein Magnus Jodal
be6e6c9a93
local: Readd lost test assertion
2013-10-27 21:26:26 +01:00
Stein Magnus Jodal
f7e85b1f12
Merge branch 'develop' into feature/track_and_count
2013-10-27 21:04:09 +01:00
Thomas Adamcik
ecc0bae344
local: Delete uris in library refresh ( fixes #500 )
...
Makes sure we remove uri's that can no longer be found in the tag cache.
2013-10-27 14:10:56 +01:00
Stein Magnus Jodal
b0ae7d3c6f
local: Fix crash on non-ASCII chars in URIs
2013-10-24 23:22:01 +02:00
Lasse Bigum
457c39fc78
Remove duplicate test group, merge it into existing
2013-10-22 23:40:38 +02:00
Lasse Bigum
1975694d08
Changed track to track_no, fix code, add tests
...
Added testcases for track and count
2013-10-20 23:04:48 +02:00
Thomas Adamcik
84c373d7ea
Merge branch 'develop' into fix/bug-496-handle-single
...
Conflicts:
mopidy/core/tracklist.py
2013-10-20 22:46:35 +02:00
Thomas Adamcik
f1f223bba8
local: Fix handling of single in eot_track ( fixes #496 )
...
- Adds test cases for code paths that caused bug
- Short circuits EOT next track handling when in single mode.
2013-10-20 21:43:19 +02:00
Thomas Adamcik
7fc753d167
core/local: Update playback test with review comments.
...
- Fixes typo.
- Adds assert to better test intermediate state.
2013-10-20 21:16:18 +02:00
Thomas Adamcik
d978005008
core: flake8 fixes
2013-10-20 20:33:48 +02:00
Thomas Adamcik
40754bb2e0
core: Fix handling of shuffle ( fixes #453 )
...
- Shuffle internal list when random is enabled
- Use presence of tl_track to determine if this is first run to trigger
subsequent shuffles.
2013-10-20 19:28:13 +02:00
Thomas Adamcik
66ae1b8eee
local/core: Add and fix more random related tests.
...
- Adds tests for eot_track vs next_track as we were only testing the one code
path.
- Makes test_random_until_end_of_playlist_and_play_from_start actually test
random and not repeat.
- Adds test_play_track_then_enable_random which is the underlying bug covered
by the regression test for issue #17 .
2013-10-20 18:39:07 +02:00
Thomas Adamcik
025bafc114
local/core: Update random tests to be more predictable
...
- Replace setting the random seed with mocking out shuffle with reverse. This
makes tests easier to reason about while still being able to test correct
behaviour.
- Increases number of tracks to four to avoid test passing due to symetry in
plain and reversed lists.
- Made test_eot_track_with_random_after_append_playlist actually test eot and
not next.
- Found a test failure in handling of test_random_until_end_of_playlist, fix in
next commit.
2013-10-20 18:39:07 +02:00
Thomas Adamcik
fcd3e5d5cf
local: Add test for fallback handling of unknown track uris in playlists
...
- Checks that adding a non local:track:... uri to a playlist and reading it
back works.
- Also fixes mistake in API usage where we assumed lookup still raised
LookupError.
2013-10-20 16:18:03 +02:00
Thomas Adamcik
e0bfe144f8
Merge pull request #532 from jodal/feature/search-by-albumartist
...
Search filtering by albumartist
2013-10-19 13:46:58 -07:00
Thomas Adamcik
c8f5c1aacf
Merge pull request #537 from jodal/tidy-up-core
...
Core playback and tracklist modularity improvement v2
2013-10-19 13:24:21 -07:00
Stein Magnus Jodal
27a63b1688
local: Remove redundant test asserts
2013-10-19 22:17:08 +02:00
Stein Magnus Jodal
c850ed2698
Merge branch 'develop' into feature/search-by-albumartist
...
Conflicts:
tests/backends/local/library_test.py
2013-10-19 22:15:50 +02:00
Stein Magnus Jodal
7d874873bd
local: Include albumartist in 'any' searches
2013-10-19 22:14:53 +02:00
Stein Magnus Jodal
d7552b2fe2
tests: Formatting
2013-10-19 20:53:02 +02:00
Stein Magnus Jodal
d9921d9127
core.tracklist: Test changed index() behavior
2013-10-19 20:53:01 +02:00
Javier Domingo Cansino
677c61f398
tests: Rename local tests to describe that they are testing local providers and not core controllers
2013-10-18 16:12:38 +02:00
Javier Domingo Cansino
e9c20d2e59
Correcting flake error on unused import
2013-10-15 12:11:01 +02:00
Javier Domingo Cansino
1d4ff4c9c6
Merging upstream changes in tidy-up-core
2013-10-15 09:37:54 +02:00
Stein Magnus Jodal
ccbae310c6
local: Add albumartist support to search/find_exact
2013-10-12 00:16:20 +02:00
Stein Magnus Jodal
3c53c1ddcd
tests: Merge BaseBackend and LocalBackend tests
2013-10-11 22:17:27 +02:00
Stein Magnus Jodal
5c7a496dc2
Fix flake8 warnings
2013-08-08 21:09:01 +02:00
Thomas Adamcik
6ac62c6869
local: Review fixes.
2013-07-30 22:59:22 +02:00
Thomas Adamcik
18ed7c6279
local: Convert mopidy-local extension to local: uris.
...
- Use local:playlist:<name>, local:track:<path> and local:search uris
- Adds LocalPlaybackProvider which translates to file uris.
- Switches to storing actual uris in playlists - so local: urls and not
file:// or plain paths.
- Moved file:// to streaming plugin
- Cleaned up tests and imports for these changes.
2013-07-30 00:40:12 +02:00
Thomas Adamcik
855d03c81e
local: start reading mtime from tag caches
2013-05-20 00:58:43 +02:00
Stein Magnus Jodal
52ee456692
tests: Import unittest directly from the stdlib
2013-04-29 19:45:25 +02:00
Thomas Adamcik
160a70e6df
path: Only accept bytes as paths
2013-04-25 21:08:33 +02:00
Stein Magnus Jodal
41d7ae9a2c
Replace 'folder' with 'dir'
2013-04-08 21:13:59 +02:00
Stein Magnus Jodal
3339b79c1e
local: Rename 'music_path' to 'music_dir', 'playlist_path' to 'playlists_dir'
2013-04-08 20:58:17 +02:00
Stein Magnus Jodal
775b276169
local: Use new config system
2013-04-05 16:59:18 +02:00
Thomas Adamcik
6f39bde566
config: Start passing dummy config explicitly to audio/backends/frontends.
2013-04-02 19:14:46 +02:00
Stein Magnus Jodal
74788a2ccb
Remove the BACKENDS setting
2013-04-01 20:14:20 +02:00
Stein Magnus Jodal
6345022cfc
Move frontend/backend import into methods
2013-04-01 19:47:24 +02:00
Stein Magnus Jodal
147bb5e983
local: Read track date from tag cache
2012-12-20 21:30:08 +01:00
Stein Magnus Jodal
f302949ea9
tests: Use empty tag cache in all local backend tests
2012-12-12 13:43:41 +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
15cb291316
tests: Rename test file so that it's executed
2012-11-17 17:10:27 +01:00