Skip to content

Commit

Permalink
Update intent tests to include utterance in failure logs (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel authored Oct 29, 2024
1 parent 49474d9 commit 12d63c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions neon_minerva/tests/test_skill_intents.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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', {})
Expand Down

0 comments on commit 12d63c5

Please sign in to comment.