Skip to content

Commit

Permalink
Fix utterance case normalization
Browse files Browse the repository at this point in the history
Fix message formatting bug for CQS tests
  • Loading branch information
NeonDaniel committed Jan 15, 2024
1 parent 870d158 commit 3d8219f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions neon_minerva/tests/test_skill_intents.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def test_intents(self):
utt = list(utt.keys())[0]
else:
data = list()

utt = utt.lower()
match = parser.test_intent(utt)
self.assertIsInstance(match, IntentMatch)
self.assertEqual(match.skill_id, self.test_skill_id)
Expand Down Expand Up @@ -169,8 +169,9 @@ def test_common_query(self):
utt = list(utt.keys())[0]
else:
data = dict()
utt = utt.lower()
message = Message('test_utterance',
{"utterances": [utt], "lang": lang})
{"utterance": utt, "lang": lang})
self.common_query_service.handle_question(message)
response = qa_response.call_args[0][0]
callback = qa_response.call_args[0][0]
Expand Down

0 comments on commit 3d8219f

Please sign in to comment.