Skip to content

Commit

Permalink
Continue unit test refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Jun 25, 2024
1 parent e7a01fa commit 2f035ab
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 @@ -102,7 +102,7 @@ def get_response(*args, **kwargs):
# Shutdown confirmed
message = Message("valid_intent", {"shutdown": "shut down"})

def get_response(*args):
def get_response(*args, **kwargs):
self.assertEqual(args[0], "ask_exit_shutdown")
dialog = args[0]
dialog_data = args[1]
Expand Down Expand Up @@ -130,7 +130,7 @@ def get_response(*args):
# Restart Confirmed
message = Message("valid_intent", {"restart": "reboot"})

def get_response(*args):
def get_response(*args, **kwargs):
self.assertEqual(args[0], "ask_exit_shutdown")
dialog = args[0]
dialog_data = args[1]
Expand Down Expand Up @@ -159,7 +159,7 @@ def get_response(*args):
self.skill._do_exit_shutdown.reset_mock()
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]
Expand All @@ -186,7 +186,7 @@ def get_response(*args):
# Exit no response
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]
Expand Down

0 comments on commit 2f035ab

Please sign in to comment.