From 2dce39cd487e0a84bc1c51ad0b3665c5ac3ff918 Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Tue, 2 Jan 2024 13:34:31 -0800 Subject: [PATCH] Make skill references compatible with ovos-workshop changes --- neon_minerva/tests/test_skill_resources.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/neon_minerva/tests/test_skill_resources.py b/neon_minerva/tests/test_skill_resources.py index 0dedf76..60e9e48 100644 --- a/neon_minerva/tests/test_skill_resources.py +++ b/neon_minerva/tests/test_skill_resources.py @@ -81,10 +81,17 @@ def _on_message(cls, message): def test_skill_setup(self): self.assertEqual(self.skill.skill_id, self.test_skill_id) - self.assertEqual(set([self.skill._core_lang] + - self.skill._secondary_langs), - set(self.supported_languages), - f"expected={self.supported_languages}") + if hasattr(self.skill, "_core_lang"): + # ovos-workshop < 0.0.15 + self.assertEqual(set([self.skill._core_lang] + + self.skill._secondary_langs), + set(self.supported_languages), + f"expected={self.supported_languages}") + else: + self.assertEqual(set([self.skill.core_lang] + + self.skill.secondary_langs), + set(self.supported_languages), + f"expected={self.supported_languages}") def test_intent_registration(self): registered_adapt = list()