Skip to content

Commit

Permalink
Troubleshooting unit test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Nov 13, 2023
1 parent bf79d0f commit 55d223a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/api_method_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,10 @@ def test_get_stt_valid_file(self):
"neon.get_stt", {"audio_file": os.path.join(AUDIO_FILE_PATH,
"stop.wav")},
context), context["ident"], 60.0)
self.assertEqual(stt_resp.context, context)
for key in context:
if key != 'timing':
self.assertEqual(stt_resp.context[key], context[key])

self.assertIsInstance(stt_resp.data.get("parser_data"), dict,
stt_resp.serialize())
self.assertIsInstance(stt_resp.data.get("transcripts"), list,
Expand Down

0 comments on commit 55d223a

Please sign in to comment.