forked from MycroftAI/skill-date-time
-
-
Notifications
You must be signed in to change notification settings - Fork 8
test_from_plugin and test_from_plugin_loader are failing #32
Copy link
Copy link
Open
Description
____________________________________ TestSkillLoading.test_from_plugin ____________________________________
self = <test_skill_loading.TestSkillLoading testMethod=test_from_plugin>
2023-06-23 14:43:33.339 - OVOS - ovos_utils.file_utils:on_any_event:383 - ERROR - An error occurred handling file change event callback
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/ovos_utils/file_utils.py", line 381, in on_any_event
self._callback(event.src_path)
TypeError: SkillLoader._handle_filechange() takes 1 positional argument but 2 were given
2023-06-23 14:43:33.340 - OVOS - ovos_utils.file_utils:on_any_event:383 - ERROR - An error occurred handling file change event callback
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/ovos_utils/file_utils.py", line 381, in on_any_event
self._callback(event.src_path)
TypeError: SkillLoader._handle_filechange() takes 1 positional argument but 2 were given
2023-06-23 14:43:33.341 - OVOS - ovos_utils.file_utils:on_any_event:383 - ERROR - An error occurred handling file change event callback
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/ovos_utils/file_utils.py", line 381, in on_any_event
self._callback(event.src_path)
TypeError: SkillLoader._handle_filechange() takes 1 positional argument but 2 were given
2023-06-23 14:43:33.342 - OVOS - ovos_utils.file_utils:on_any_event:383 - ERROR - An error occurred handling file change event callback
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/ovos_utils/file_utils.py", line 381, in on_any_event
self._callback(event.src_path)
TypeError: SkillLoader._handle_filechange() takes 1 positional argument but 2 were given
2023-06-23 14:43:33.344 - OVOS - ovos_utils.file_utils:on_any_event:383 - ERROR - An error occurred handling file change event callback
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/ovos_utils/file_utils.py", line 381, in on_any_event
self._callback(event.src_path)
TypeError: SkillLoader._handle_filechange() takes 1 positional argument but 2 were given
def test_from_plugin(self):
bus = FakeBus()
for skill_id, plug in find_skill_plugins().items():
if skill_id == self.skill_id:
skill = plug()
skill._startup(bus, self.skill_id)
self.assertEqual(skill.bus, bus)
self.assertEqual(skill.skill_id, self.skill_id)
break
else:
> raise RuntimeError("plugin not found")
E RuntimeError: plugin not found
test/unittests/test_skill_loading.py:40: RuntimeError
________________________________ TestSkillLoading.test_from_plugin_loader _________________________________
self = <test_skill_loading.TestSkillLoading testMethod=test_from_plugin_loader>
def test_from_plugin_loader(self):
bus = FakeBus()
loader = PluginSkillLoader(bus, self.skill_id)
for skill_id, plug in find_skill_plugins().items():
if skill_id == self.skill_id:
loader.load(plug)
break
else:
> raise RuntimeError("plugin not found")
E RuntimeError: plugin not found
test/unittests/test_skill_loading.py:57: RuntimeError
This seems to happen with more skills actually so I'm doubting it's specific to this specific skill, but it's the first I noticed it on.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels