Commit Graph

460 Commits

Author SHA1 Message Date
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
Javier Domingo Cansino
268c3b7879 tests: correcting indentation 2013-08-13 10:05:01 +02:00
Javier Domingo Cansino
b70cd9e787 tests: moving more tests from playback to tracklist 2013-08-13 09:58:10 +02:00
Javier Domingo Cansino
a7d8af544d tests: tracklist tests renaming the TracklistController holder from controller to tracklist for test uniformity 2013-08-13 09:41:15 +02:00
Javier Domingo Cansino
7af86d65ac Merge branch 'develop' into tidy-up-core
Git was not correctly identifying the merge and threw a conflict
2013-08-12 13:41:15 +02:00
Javier Domingo Cansino
11d82056a9 core: Merged tracklist_position to index inside TracklistController
docs: Updated changelog.rst
2013-08-09 09:15:54 +02:00
Stein Magnus Jodal
5c7a496dc2 Fix flake8 warnings 2013-08-08 21:09:01 +02:00
Javier Domingo Cansino
782a6a7d1f Renamed tl_track_at_* to more readable names 2013-08-08 17:01:24 +02:00
Javier Domingo Cansino
694db515e4 Merge branch 'develop' into tidy-up-core 2013-08-08 13:19:01 +02:00
Javier Domingo Cansino
6e61f2ef85 Refactoring code to convert tl_track_at_previous() in a function, also recoded
tests.
2013-08-07 21:53:46 +02:00
Javier Domingo Cansino
6abcad3e55 Converting tl_track_at_next into a function that takes the track argument.
Rewrote tests too.
2013-08-07 21:38:16 +02:00
Javier Domingo Cansino
68ea483c7b Converted tracklist_position() to be called with the track one wants to have information of,
/mopidy/frontends/mpd/protocol/status.py@189 should be checked for gathering a value before
the rest.
2013-08-07 17:50:22 +02:00
Javier Domingo Cansino
4db3999371 Cleanup of PlaybackController to be more specific on the current track and
moved those functions to TracklistController, which may control all related
to the tracks. Updated tests too.
2013-08-07 10:44:22 +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
c45db5388a tests: Use audio instancee, not module 2013-03-19 23:49:46 +01:00