Skip to content

test_from_plugin and test_from_plugin_loader are failing #32

Description

@PureTryOut
____________________________________ 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions