From e815a7f6fcb3dffff374b18710df928ac674d91e Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Thu, 30 May 2024 19:02:15 -0700 Subject: [PATCH] Troubleshooting test failures --- tests/neon_skill_tests.py | 2 +- tests/skills/__init__.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/neon_skill_tests.py b/tests/neon_skill_tests.py index a2c48f3b..514132ab 100644 --- a/tests/neon_skill_tests.py +++ b/tests/neon_skill_tests.py @@ -759,7 +759,7 @@ def is_valid(_): test_results["validator"] = True return False - on_fail = Mock() + on_fail = Mock(return_value="fail") def skill_response_thread(s: MycroftSkill, idx: str): resp = s.get_response(test_dialog, validator=is_valid, diff --git a/tests/skills/__init__.py b/tests/skills/__init__.py index fcd7b9d1..ad69fd8b 100644 --- a/tests/skills/__init__.py +++ b/tests/skills/__init__.py @@ -124,8 +124,8 @@ def handle_chat_message(self, message: Message): class TestKioskSkill(KioskSkill): - def __init__(self): - super(TestKioskSkill, self).__init__() + def __init__(self, *args, **kwargs): + KioskSkill.__init__(self, *args, **kwargs) self._timeout_seconds = 60 @property