Skip to content

Commit

Permalink
Update test case to account for context handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel McKnight committed Dec 19, 2023
1 parent 23b2f6a commit 32c6441
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_skill.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,10 @@ def test_get_attachments(self):
"data": {"key": "val"}}

content = self.skill._get_support_info(test_message, test_profile)
self.assertEqual(set(content.keys()),
{'user_profile', 'message_context', 'module_status',
'loaded_skills', 'packages', 'host_device',
'generated_time_utc'})
for key in {'user_profile', 'message_context', 'module_status',
'loaded_skills', 'packages', 'host_device',
'generated_time_utc'}:
self.assertIsNotNone(content[key])
self.assertEqual(content['user_profile'], test_profile)
self.assertEqual(content['message_context'], original_context)
self.assertEqual(content['module_status'], {'test': True})
Expand Down

0 comments on commit 32c6441

Please sign in to comment.