Skip to content

Commit

Permalink
pin older ovos utils until unittests updated
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Oct 12, 2023
1 parent 496b3d4 commit 031f851
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions test/unittests/common_query/test_continuous_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,13 @@ def test_continuous_dialog(self):
{"query": "what is the speed of light"}))

self.assertEqual(self.bus.emitted_msgs[0],
{'context': {'skill_id': 'wiki.test',
'session': self.bus.emitted_msgs[0]["context"]["session"]},
{'context': {'skill_id': 'wiki.test'},
'data': {'context': 'wiki_testFakeWikiKnows',
'origin': '',
'word': 'what is the speed of light'},
'type': 'add_context'})
self.assertEqual(self.bus.emitted_msgs[-1],
{'context': {'skill_id': 'wiki.test',
'session': self.bus.emitted_msgs[-1]["context"]["session"]},
{'context': {'skill_id': 'wiki.test'},
'data': {'expect_response': False,
'lang': 'en-us',
'meta': {'skill': 'wiki.test'},
Expand All @@ -58,8 +56,7 @@ def test_continuous_dialog(self):
self.skill.handle_tell_more(Message("FakeWikiMore"))

self.assertEqual(self.bus.emitted_msgs[-1],
{'context': {'skill_id': 'wiki.test',
'session': self.bus.emitted_msgs[-1]["context"]["session"]},
{'context': {'skill_id': 'wiki.test'},
'data': {'expect_response': False,
'lang': 'en-us',
'meta': {'skill': 'wiki.test'},
Expand All @@ -76,8 +73,7 @@ def test_continuous_dialog(self):

# removal of context to disable "tell me more"
self.assertEqual(self.bus.emitted_msgs[-1],
{'context': {'skill_id': 'wiki.test',
'session': self.bus.emitted_msgs[-1]["context"]["session"]},
{'context': {'skill_id': 'wiki.test'},
'data': {'context': 'wiki_testFakeWikiKnows'},
'type': 'remove_context'})
self.assertFalse(self.skill.has_context)

0 comments on commit 031f851

Please sign in to comment.