Skip to content

Commit

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

self.assertEqual(self.bus.emitted_msgs[0],
{'context': {'skill_id': 'wiki.test'},
{'context': {'skill_id': 'wiki.test',
'session': self.bus.emitted_msgs[0]["context"]["session"]},
'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'},
{'context': {'skill_id': 'wiki.test',
'session': self.bus.emitted_msgs[-1]["context"]["session"]},
'data': {'expect_response': False,
'lang': 'en-us',
'meta': {'skill': 'wiki.test'},
Expand All @@ -56,7 +58,8 @@ def test_continuous_dialog(self):
self.skill.handle_tell_more(Message("FakeWikiMore"))

self.assertEqual(self.bus.emitted_msgs[-1],
{'context': {'skill_id': 'wiki.test'},
{'context': {'skill_id': 'wiki.test',
'session': self.bus.emitted_msgs[-1]["context"]["session"]},
'data': {'expect_response': False,
'lang': 'en-us',
'meta': {'skill': 'wiki.test'},
Expand All @@ -73,7 +76,8 @@ 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'},
{'context': {'skill_id': 'wiki.test',
'session': self.bus.emitted_msgs[-1]["context"]["session"]},
'data': {'context': 'wiki_testFakeWikiKnows'},
'type': 'remove_context'})
self.assertFalse(self.skill.has_context)

0 comments on commit 32ce9f3

Please sign in to comment.