From 031f8517bea702694ba080857d1227c4809e717b Mon Sep 17 00:00:00 2001 From: JarbasAi Date: Thu, 12 Oct 2023 20:16:34 +0100 Subject: [PATCH] pin older ovos utils until unittests updated --- .../unittests/common_query/test_continuous_dialog.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/test/unittests/common_query/test_continuous_dialog.py b/test/unittests/common_query/test_continuous_dialog.py index 06d10cf70002..aa7a46cf9a7f 100644 --- a/test/unittests/common_query/test_continuous_dialog.py +++ b/test/unittests/common_query/test_continuous_dialog.py @@ -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'}, @@ -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'}, @@ -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)