Skip to content

Commit

Permalink
Troubleshooting unit test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Sep 19, 2024
1 parent a7c21d7 commit 5b195ac
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/unit_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,20 +230,18 @@ 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"},
"VAD": {"module": "dummy"}})
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
Expand Down

0 comments on commit 5b195ac

Please sign in to comment.