Skip to content

Commit

Permalink
Fix typo in ready callback
Browse files Browse the repository at this point in the history
Copy context in tests for test compat.
  • Loading branch information
NeonDaniel committed Nov 13, 2023
1 parent 09906c7 commit 229c752
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/api_method_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 229c752

Please sign in to comment.