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

fix: update deprecated imports from ovos-utils #300

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ovos_workshop/skills/ovos.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ def bus(self, value: MessageBusClient):
@param value: new MessageBusClient object
"""
from ovos_bus_client import MessageBusClient
from ovos_utils.messagebus import FakeBus
from ovos_utils.fakebus import FakeBus
if isinstance(value, (MessageBusClient, FakeBus)):
self._bus = value
else:
Expand Down
2 changes: 1 addition & 1 deletion test/unittests/skills/test_active.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import unittest
from unittest.mock import Mock

from ovos_utils.messagebus import FakeBus
from ovos_utils.fakebus import FakeBus
from ovos_workshop.skills.ovos import OVOSSkill
from ovos_workshop.skills.active import ActiveSkill

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 @@ -10,7 +10,7 @@
from os.path import join, dirname, isdir
from ovos_workshop.skills.ovos import OVOSSkill

from ovos_utils.messagebus import FakeBus
from ovos_utils.fakebus import FakeBus


class TestOVOSSkill(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion test/unittests/skills/test_common_query_skill.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from unittest import TestCase

from ovos_utils.messagebus import FakeBus
from ovos_utils.fakebus import FakeBus
from ovos_workshop.skills.common_query_skill import CommonQuerySkill, CQSMatchLevel


Expand Down
2 changes: 1 addition & 1 deletion test/unittests/skills/test_fallback_skill.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from unittest.mock import patch, Mock

from threading import Event
from ovos_utils.messagebus import FakeBus
from ovos_utils.fakebus import FakeBus
from ovos_bus_client.message import Message
from ovos_workshop.decorators import fallback_handler
from ovos_workshop.skills.fallback import FallbackSkill
Expand Down
2 changes: 1 addition & 1 deletion test/unittests/skills/test_idle_display_skill.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import unittest

from ovos_utils.messagebus import FakeBus
from ovos_utils.fakebus import FakeBus
from ovos_workshop.skills.ovos import OVOSSkill
from ovos_workshop.skills.idle_display_skill import IdleDisplaySkill

Expand Down
2 changes: 1 addition & 1 deletion test/unittests/skills/test_ovos.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import unittest

from ovos_utils.process_utils import RuntimeRequirements
from ovos_utils.messagebus import FakeBus
from ovos_utils.fakebus import FakeBus
from ovos_utils import classproperty
from ovos_workshop.decorators.layers import IntentLayers
from ovos_workshop.resource_files import SkillResources
Expand Down
4 changes: 1 addition & 3 deletions test/unittests/test_abstract_app.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import unittest
from os import remove
from os.path import join, dirname
from unittest.mock import Mock, patch

from json_database import JsonStorage
from ovos_bus_client.apis.gui import GUIInterface
from ovos_utils.messagebus import FakeBus
from ovos_utils.fakebus import FakeBus

from ovos_workshop.app import OVOSAbstractApplication
from ovos_workshop.skills.ovos import OVOSSkill
Expand Down
2 changes: 1 addition & 1 deletion test/unittests/test_decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from time import sleep

from ovos_workshop.skill_launcher import SkillLoader
from ovos_utils.messagebus import FakeBus
from ovos_utils.fakebus import FakeBus
from ovos_bus_client.message import Message


Expand Down
2 changes: 1 addition & 1 deletion test/unittests/test_skill.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from ovos_bus_client import Message

from ovos_workshop.skills.ovos import OVOSSkill
from ovos_utils.messagebus import FakeBus
from ovos_utils.fakebus import FakeBus
from os.path import dirname
from ovos_workshop.skill_launcher import SkillLoader

Expand Down
2 changes: 1 addition & 1 deletion test/unittests/test_skill_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from os import environ
from os.path import basename, join, dirname, isdir

from ovos_utils.messagebus import FakeBus
from ovos_utils.fakebus import FakeBus


class TestSkillLauncherFunctions(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion test/unittests/test_skill_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from unittest.mock import Mock

from ovos_utils import classproperty
from ovos_utils.messagebus import FakeBus
from ovos_utils.fakebus import FakeBus
from ovos_utils.process_utils import RuntimeRequirements
from ovos_workshop.skill_launcher import SkillLoader

Expand Down
Loading