Skip to content

Commit

Permalink
Update unit tests to resolve test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Jun 25, 2024
1 parent e63c2b7 commit 30cc129
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 @@ -74,12 +74,12 @@ def test_handle_exit_shutdown_intent(self):
# Exit Confirmed
message = Message("valid_intent", {"exit": "exit"})

def get_response(*args):
def get_response(*args, **kwargs):
self.assertEqual(args[0], "ask_exit_shutdown")
dialog = args[0]
dialog_data = args[1]
validator = args[2]
on_fail = args[3]
dialog_data = kwargs.get('data') or args[1]
validator = kwargs.get('validator') or args[2]
on_fail = kwargs.get('on_fail') or args[3]

self.assertEqual(dialog, "ask_exit_shutdown")
self.assertEqual(dialog_data["action"], "stop Neon")
Expand Down

0 comments on commit 30cc129

Please sign in to comment.