diff --git a/tests/api_method_tests.py b/tests/api_method_tests.py index d25563c..19a9007 100644 --- a/tests/api_method_tests.py +++ b/tests/api_method_tests.py @@ -76,7 +76,7 @@ def _ready(): cls.speech_service = NeonSpeechClient(speech_config=test_config, daemonic=False, bus=cls.bus, - ready_hook=_ready()) + ready_hook=_ready) assert cls.speech_service.config["stt"]["module"] == "deepspeech_stream_local" cls.speech_service.start() @@ -181,7 +181,7 @@ def test_audio_input_valid(self): "stop.wav")) stt_resp = self.bus.wait_for_response(Message( "neon.audio_input", {"audio_data": audio_data}, - context), context["ident"], 60.0) + dict(context)), context["ident"], 60.0) self.assertIsInstance(stt_resp, Message) for key in context: self.assertIn(key, stt_resp.context) @@ -369,7 +369,7 @@ def test_audio_input_valid(self): "stop.wav")) stt_resp = self.bus.wait_for_response(Message( "neon.audio_input", {"audio_data": audio_data}, - context), context["ident"], 60.0) + dict(context)), context["ident"], 60.0) self.assertIsInstance(stt_resp, Message) for key in context: self.assertIn(key, stt_resp.context)