dummy: Move dummy backend back into the mopidy package

This commit is contained in:
Stein Magnus Jodal 2014-01-18 01:38:01 +01:00
parent e97e620635
commit 1ea0978af5
8 changed files with 15 additions and 15 deletions

View File

@ -68,6 +68,11 @@ guys. Thanks to everyone that has contributed!
by backends that wants to expose directories of tracks in Mopidy's virtual
file system.
**Frontend API**
- The dummy backend used for testing many frontends have moved from
:mod:`mopidy.backends.dummy` to :mod:`mopidy.backend.dummy`.
**Commands**
- Reduce amount of logging from dependencies when using :option:`mopidy -v`.

View File

@ -6,15 +6,14 @@ import unittest
import pykka
from mopidy import core
from mopidy.backend import dummy
from mopidy.models import Track
from tests import dummy_backend
@mock.patch.object(core.CoreListener, 'send')
class BackendEventsTest(unittest.TestCase):
def setUp(self):
self.backend = dummy_backend.create_dummy_backend_proxy()
self.backend = dummy.create_dummy_backend_proxy()
self.core = core.Core.start(backends=[self.backend]).proxy()
def tearDown(self):

View File

@ -6,10 +6,9 @@ import unittest
import pykka
from mopidy import core
from mopidy.backend import dummy
from mopidy.mpd import session
from tests import dummy_backend
class MockConnection(mock.Mock):
def __init__(self, *args, **kwargs):
@ -32,7 +31,7 @@ class BaseTestCase(unittest.TestCase):
}
def setUp(self):
self.backend = dummy_backend.create_dummy_backend_proxy()
self.backend = dummy.create_dummy_backend_proxy()
self.core = core.Core.start(backends=[self.backend]).proxy()
self.connection = MockConnection()

View File

@ -5,12 +5,11 @@ import unittest
import pykka
from mopidy import core
from mopidy.backend import dummy
from mopidy.mpd.dispatcher import MpdDispatcher
from mopidy.mpd.exceptions import MpdAckError
from mopidy.mpd.protocol import request_handlers, handle_request
from tests import dummy_backend
class MpdDispatcherTest(unittest.TestCase):
def setUp(self):
@ -19,7 +18,7 @@ class MpdDispatcherTest(unittest.TestCase):
'password': None,
}
}
self.backend = dummy_backend.create_dummy_backend_proxy()
self.backend = dummy.create_dummy_backend_proxy()
self.core = core.Core.start(backends=[self.backend]).proxy()
self.dispatcher = MpdDispatcher(config=config)

View File

@ -5,13 +5,12 @@ import unittest
import pykka
from mopidy import core
from mopidy.backend import dummy
from mopidy.core import PlaybackState
from mopidy.models import Track
from mopidy.mpd import dispatcher
from mopidy.mpd.protocol import status
from tests import dummy_backend
PAUSED = PlaybackState.PAUSED
PLAYING = PlaybackState.PLAYING
STOPPED = PlaybackState.STOPPED
@ -22,7 +21,7 @@ STOPPED = PlaybackState.STOPPED
class StatusHandlerTest(unittest.TestCase):
def setUp(self):
self.backend = dummy_backend.create_dummy_backend_proxy()
self.backend = dummy.create_dummy_backend_proxy()
self.core = core.Core.start(backends=[self.backend]).proxy()
self.dispatcher = dispatcher.MpdDispatcher(core=self.core)
self.context = self.dispatcher.context

View File

@ -7,10 +7,9 @@ import unittest
import pykka
from mopidy import core, models
from mopidy.backend import dummy
from mopidy.utils import jsonrpc
from tests import dummy_backend
class Calculator(object):
def model(self):
@ -41,7 +40,7 @@ class Calculator(object):
class JsonRpcTestBase(unittest.TestCase):
def setUp(self):
self.backend = dummy_backend.create_dummy_backend_proxy()
self.backend = dummy.create_dummy_backend_proxy()
self.core = core.Core.start(backends=[self.backend]).proxy()
self.jrw = jsonrpc.JsonRpcWrapper(