|
@@ -33,11 +33,12 @@ class TestNeuronModule(unittest.TestCase):
|
|
|
"""
|
|
|
|
|
|
with mock.patch("kalliope.core.OrderListener.start") as mock_orderListener_start:
|
|
|
- def callback():
|
|
|
- pass
|
|
|
- NeuronModule.get_audio_from_stt(callback=callback())
|
|
|
- mock_orderListener_start.assert_called_once_with()
|
|
|
- mock_orderListener_start.reset_mock()
|
|
|
+ with mock.patch("kalliope.core.OrderListener.join") as mock_orderListener_join:
|
|
|
+ def callback():
|
|
|
+ pass
|
|
|
+ NeuronModule.get_audio_from_stt(callback=callback())
|
|
|
+ mock_orderListener_start.assert_called_once_with()
|
|
|
+ mock_orderListener_start.reset_mock()
|
|
|
|
|
|
def test_update_cache_var(self):
|
|
|
"""
|