Exemple #1
0
 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
Exemple #2
0
    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
Exemple #3
0
 def __init__(self, connection, config=None, core=None):
     super(MpdSession, self).__init__(connection)
     self.dispatcher = dispatcher.MpdDispatcher(session=self,
                                                config=config,
                                                core=core)