DummyLibraryController.search() should return a Playlist
This commit is contained in:
parent
45e5b3fd3e
commit
200d6a22ca
@ -1,6 +1,7 @@
|
||||
from mopidy.backends import (BaseBackend, BaseCurrentPlaylistController,
|
||||
BasePlaybackController, BaseLibraryController,
|
||||
BaseStoredPlaylistsController)
|
||||
from mopidy.models import Playlist
|
||||
|
||||
class DummyBackend(BaseBackend):
|
||||
def __init__(self):
|
||||
@ -15,7 +16,7 @@ class DummyCurrentPlaylistController(BaseCurrentPlaylistController):
|
||||
|
||||
class DummyLibraryController(BaseLibraryController):
|
||||
def search(self, type, query):
|
||||
return []
|
||||
return Playlist()
|
||||
|
||||
class DummyPlaybackController(BasePlaybackController):
|
||||
def _next(self):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user