From 55d223a7e5fe963fede57b3eb5eb5e62b9018cfe Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Mon, 13 Nov 2023 12:38:56 -0800 Subject: [PATCH] Troubleshooting unit test failures --- tests/api_method_tests.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/api_method_tests.py b/tests/api_method_tests.py index e39081c..bf7e7b4 100644 --- a/tests/api_method_tests.py +++ b/tests/api_method_tests.py @@ -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,