DummyLibraryController.search() should return a Playlist

This commit is contained in:
Stein Magnus Jodal 2010-02-10 17:40:53 +01:00
parent 45e5b3fd3e
commit 200d6a22ca

View File

@ -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):