Skip to content

Commit

Permalink
Patch FakeBus object for MessageBusClient compat.
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Jan 15, 2024
1 parent 9c4c691 commit fa63668
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions neon_minerva/tests/skill_unit_test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

from os import environ, getenv
from os.path import dirname, join
from threading import Event
from unittest.mock import Mock
from ovos_utils.messagebus import FakeBus

Expand All @@ -49,6 +50,8 @@ class SkillTestCase(unittest.TestCase):
bus = FakeBus()
# Patching FakeBus compat. with MessageBusClient
bus.emitter = bus.ee
bus.connected_event = Event()
bus.connected_event.set()

bus.run_forever()
test_skill_id = 'test_skill.test'
Expand Down

0 comments on commit fa63668

Please sign in to comment.