Skip to content

Commit

Permalink
More unit test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Nov 13, 2023
1 parent edfb492 commit 3d61f03
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/api_method_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,6 @@ def test_get_stt_valid_file(self):
context['timing']['client_sent'], stt_resp.context)
self.assertIsInstance(stt_resp.context['timing']['mq_from_client'],
float, stt_resp.context)
self.assertIsInstance(stt_resp.context['timing']['transcribed'], float,
stt_resp.context)

def test_get_stt_valid_contents(self):
context = {"client": "tester",
Expand Down Expand Up @@ -195,7 +193,8 @@ def test_audio_input_valid(self):
self.assertIsInstance(message, Message)
for key in context:
self.assertIn(key, message.context)
self.assertEqual(context[key], message.context[key])
if key != "timing":
self.assertEqual(context[key], message.context[key])
self.assertIsInstance(message.data["utterances"], list, message.data)
self.assertIn("stop", message.data["utterances"],
message.data.get("utterances"))
Expand Down

0 comments on commit 3d61f03

Please sign in to comment.