From 13820196163d3499c8663f8961306d906e3545e8 Mon Sep 17 00:00:00 2001 From: miro Date: Tue, 15 Oct 2024 02:46:50 +0100 Subject: [PATCH] tests --- ovos_workshop/skills/ovos.py | 3 ++- test/unittests/skills/test_base.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ovos_workshop/skills/ovos.py b/ovos_workshop/skills/ovos.py index b6d92d9f..09ecfb5d 100644 --- a/ovos_workshop/skills/ovos.py +++ b/ovos_workshop/skills/ovos.py @@ -812,7 +812,8 @@ def _init_settings(self): # all settings.json files are monitored for changes in ovos-core self.add_event("ovos.skills.settings_changed", self._handle_settings_changed) - self._start_filewatcher() + if self._monitor_own_settings: + self._start_filewatcher() @property def _monitor_own_settings(self): diff --git a/test/unittests/skills/test_base.py b/test/unittests/skills/test_base.py index 798474c7..2570fe3e 100644 --- a/test/unittests/skills/test_base.py +++ b/test/unittests/skills/test_base.py @@ -8,6 +8,7 @@ from time import time from unittest.mock import Mock, patch from os.path import join, dirname, isdir +from ovos_workshop.skills.ovos import OVOSSkill from ovos_utils.messagebus import FakeBus @@ -15,7 +16,6 @@ class TestOVOSSkill(unittest.TestCase): test_config_path = join(dirname(__file__), "temp_config") os.environ["XDG_CONFIG_HOME"] = test_config_path - from ovos_workshop.skills.ovos import OVOSSkill bus = FakeBus() skill_id = "test_base_skill" skill = OVOSSkill(bus=bus, skill_id=skill_id)