We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de07f61 commit c5acd88Copy full SHA for c5acd88
test/unittests/stt/test_stt.py
@@ -21,8 +21,18 @@
21
22
23
class TestSTT(unittest.TestCase):
24
+ def test_factory(self):
25
+ config = {'module': 'mycroft',
26
+ 'mycroft': {'uri': 'https://test.com'}}
27
+ stt = mycroft.stt.STTFactory.create(config)
28
+ self.assertEqual(type(stt), mycroft.stt.MycroftSTT)
29
+
30
+ config = {'stt': config}
31
32
33
34
@patch.object(Configuration, 'get')
- def test_factory(self, mock_get):
35
+ def test_factory_from_config(self, mock_get):
36
mycroft.stt.STTApi = MagicMock()
37
config = base_config()
38
config.merge(
0 commit comments