From 12d63c5abb7bb5138f9a63c23bcf76a3af058fe0 Mon Sep 17 00:00:00 2001 From: Daniel McKnight <34697904+NeonDaniel@users.noreply.github.com> Date: Tue, 29 Oct 2024 13:55:21 -0700 Subject: [PATCH] Update intent tests to include utterance in failure logs (#27) --- neon_minerva/tests/test_skill_intents.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neon_minerva/tests/test_skill_intents.py b/neon_minerva/tests/test_skill_intents.py index 67a7ba1..5a75694 100644 --- a/neon_minerva/tests/test_skill_intents.py +++ b/neon_minerva/tests/test_skill_intents.py @@ -127,7 +127,7 @@ def test_intents(self): self.assertIsInstance(match, IntentMatch) self.assertEqual(match.skill_id, self.test_skill_id) self.assertEqual(match.intent_type, - f"{self.test_skill_id}:{intent}") + f"{self.test_skill_id}:{intent}", utt) self.assertEqual(match.utterance, utt) for datum in data: @@ -139,7 +139,7 @@ def test_intents(self): value = None self.assertIn(name, match.intent_data, utt) if value: - self.assertEqual(match.intent_data[name], value) + self.assertEqual(match.intent_data[name], value, utt) def test_negative_intents(self): config = self.negative_intents.pop('config', {})