From 2f035ab535636cdfe12111692bd850a6e0d69dff Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Tue, 25 Jun 2024 16:19:01 -0700 Subject: [PATCH] Continue unit test refactoring --- test/test_skill.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test_skill.py b/test/test_skill.py index 45820ac..c442894 100644 --- a/test/test_skill.py +++ b/test/test_skill.py @@ -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] @@ -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] @@ -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] @@ -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]