Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Oct 15, 2024
1 parent 6678228 commit 1382019
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ovos_workshop/skills/ovos.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion test/unittests/skills/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
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


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)
Expand Down

0 comments on commit 1382019

Please sign in to comment.