def setUp(self): # noqa: N802 self.mixer = dummy_mixer.create_proxy() self.backend = dummy_backend.create_proxy() self.core = core.Core.start( mixer=self.mixer, backends=[self.backend]).proxy() self.dispatcher = dispatcher.MpdDispatcher(core=self.core) self.context = self.dispatcher.context
def setUp(self): # noqa: N802 config = { 'core': { 'max_tracklist_length': 10000, } } self.mixer = dummy_mixer.create_proxy() self.backend = dummy_backend.create_proxy() with deprecation.ignore(): self.core = core.Core.start(config, mixer=self.mixer, backends=[self.backend]).proxy() self.dispatcher = dispatcher.MpdDispatcher(core=self.core) self.context = self.dispatcher.context
def __init__(self, connection, config=None, core=None): super(MpdSession, self).__init__(connection) self.dispatcher = dispatcher.MpdDispatcher(session=self, config=config, core=core)