From 5b195ac0a49bb509de8603bdbf96fe84ecfde08d Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Thu, 19 Sep 2024 13:26:59 -0700 Subject: [PATCH] Troubleshooting unit test failures --- tests/unit_tests.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/unit_tests.py b/tests/unit_tests.py index b2ed9e3..ffae32c 100644 --- a/tests/unit_tests.py +++ b/tests/unit_tests.py @@ -230,8 +230,8 @@ def on_ready(cls): @classmethod def setUpClass(cls): from ovos_config.config import update_mycroft_config - from neon_utils.configuration_utils import init_config_dir - init_config_dir() + # from neon_utils.configuration_utils import init_config_dir + # init_config_dir() update_mycroft_config({"hotwords": cls.hotwords_config, "stt": {"module": "neon-stt-plugin-nemo"}, @@ -239,11 +239,9 @@ def setUpClass(cls): import importlib import ovos_config.config importlib.reload(ovos_config.config) - # from ovos_config.config import Configuration - # assert Configuration.xdg_configs[0]['hotwords'] == hotwords_config + from ovos_config.config import Configuration + assert Configuration.xdg_configs[0]['hotwords'] == cls.hotwords_config - from neon_speech.utils import use_neon_speech - use_neon_speech(init_config_dir)() from neon_speech.service import NeonSpeechClient cls.service = NeonSpeechClient(bus=cls.bus, ready_hook=cls.on_ready) # assert Configuration() == service.loop.config_core