Beispiel #1
0
    def setUp(self):
        self.jasper_clip = paths.data('audio', 'jasper.wav')
        self.time_clip = paths.data('audio', 'time.wav')

        try:
            self.passive_stt_engine = testutils.get_plugin_instance(
                sphinxplugin.PocketsphinxSTTPlugin, 'unittest-passive',
                ['JASPER'])
            self.active_stt_engine = testutils.get_plugin_instance(
                sphinxplugin.PocketSphinxSTTPlugin, 'unittest-active',
                ['TIME'])
        except ImportError:
            self.skipTest("Pockersphinx not installed!")
Beispiel #2
0
 def setUp(self):
     self.plugin = testutils.get_plugin_instance(hue.HuePlugin)
     self.plugin.get_light_names = MagicMock(return_value = ['Bedroom light',
                                                             'Kitchen light',
                                                             'Living room light'])
     self.plugin.get_group_names = MagicMock(return_value = ['Living room lights',
                                                             'Living room lamps'])
     self.plugin.is_bridge_connected = MagicMock(return_value = True)
     self.plugin.connect_bridge = MagicMock()
Beispiel #3
0
 def setUp(self):
     self.plugin = testutils.get_plugin_instance(gmail.GmailPlugin)
Beispiel #4
0
 def setUp(self):
     self.plugin = testutils.get_plugin_instance(joke.JokePlugin)
Beispiel #5
0
 def setUp(self):
     self.plugin = testutils.get_plugin_instance(
         hackernews.HackerNewsPlugin)
Beispiel #6
0
 def setUp(self):
     self.plugin = testutils.get_plugin_instance(news.NewsPlugin)
Beispiel #7
0
 def setUp(self):
     self.plugin = testutils.get_plugin_instance(weather.WeatherPlugin)
 def setUp(self):
     self.plugin = testutils.get_plugin_instance(Define.DefinePlugin)
Beispiel #9
0
 def setUp(self):
     self.plugin = testutils.get_plugin_instance(MeaningOfLifePlugin)
 def setUp(self):
     self.plugin = testutils.get_plugin_instance(homeassistant.HomeAssistantPlugin)
Beispiel #11
0
 def setUp(self):
     self.plugin = testutils.get_plugin_instance(clock.ClockPlugin)