Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_from_plugin and test_from_plugin_loader are failing #32

Open
PureTryOut opened this issue Jun 23, 2023 · 0 comments
Open

test_from_plugin and test_from_plugin_loader are failing #32

PureTryOut opened this issue Jun 23, 2023 · 0 comments

Comments

@PureTryOut
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant