From fa63668aa63f76b2b9d82a64102481cbd19a28f1 Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Mon, 15 Jan 2024 15:07:51 -0800 Subject: [PATCH] Patch FakeBus object for MessageBusClient compat. --- neon_minerva/tests/skill_unit_test_base.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/neon_minerva/tests/skill_unit_test_base.py b/neon_minerva/tests/skill_unit_test_base.py index 0732b16..b2237e7 100644 --- a/neon_minerva/tests/skill_unit_test_base.py +++ b/neon_minerva/tests/skill_unit_test_base.py @@ -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 @@ -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'