Skip to content

Commit

Permalink
Make skill references compatible with ovos-workshop changes (#15)
Browse files Browse the repository at this point in the history
* Make skill references compatible with ovos-workshop changes

* manually increment version to test changes

---------

Co-authored-by: Daniel McKnight <[email protected]>
  • Loading branch information
NeonDaniel and NeonDaniel authored Jan 2, 2024
1 parent 9a68cf4 commit 98ddce5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 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
2 changes: 1 addition & 1 deletion neon_minerva/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

__version__ = "0.1.0"
__version__ = "0.1.1a1"

0 comments on commit 98ddce5

Please sign in to comment.