Skip to content

Commit

Permalink
Make skill references compatible with ovos-workshop changes
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Jan 2, 2024
1 parent 9a68cf4 commit 2dce39c
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions neon_minerva/tests/test_skill_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 2dce39c

Please sign in to comment.