From 7eb41b6e85b33bb994bd70eb33d073f638c9452a Mon Sep 17 00:00:00 2001 From: Daniel McKnight <34697904+NeonDaniel@users.noreply.github.com> Date: Mon, 15 Jan 2024 15:57:58 -0800 Subject: [PATCH] Update to use shared CommonQuery test class (#69) * Update to use shared CommonQuery test class * Validate backwards-compat. with action in .github repo * Update minerva to released alpha spec * Validate minerva input normalization fix * Update to resolve test errors * Update minerva test dependency to latest version * Update test workflows to default branch --------- Co-authored-by: Daniel McKnight --- __init__.py | 4 ++++ requirements/test.txt | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/__init__.py b/__init__.py index 45f5e78..d033059 100644 --- a/__init__.py +++ b/__init__.py @@ -39,6 +39,7 @@ from bs4 import BeautifulSoup from time import sleep +from lingua_franca import load_language from ovos_bus_client import Message from ovos_utils import classproperty from ovos_utils.log import LOG @@ -82,6 +83,8 @@ def __init__(self, **kwargs): self.from_caffeine_informer = list() self._update_event = Event() CommonQuerySkill.__init__(self, **kwargs) + from neon_utils.signal_utils import init_signal_bus + init_signal_bus(self.bus) @classproperty def runtime_requirements(self): @@ -428,6 +431,7 @@ def _get_new_info(self, reply=False): # Add Normalized drink names def _normalize_drink_list(drink_list): + load_language(self.lang) # Necessary for intent tests for drink in drink_list: try: parsed_name = normalize(drink[0].replace('-', ' '), 'en') diff --git a/requirements/test.txt b/requirements/test.txt index 5e5737f..55bb597 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -1 +1 @@ -neon-minerva[padatious]~=0.1,>=0.1.1a1 +neon-minerva[padatious]~=0.1,>=0.1.1a5