From c97136e77ae36fb94605c1e988f0dc68b51138fe Mon Sep 17 00:00:00 2001 From: miro Date: Tue, 12 Nov 2024 07:20:01 +0000 Subject: [PATCH] fix:tests --- test/end2end/routing/test_session.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/end2end/routing/test_session.py b/test/end2end/routing/test_session.py index f1cd842e3d3a..d338251d9ab8 100644 --- a/test/end2end/routing/test_session.py +++ b/test/end2end/routing/test_session.py @@ -3,7 +3,7 @@ from unittest import TestCase from ovos_utils.ocp import PlayerState, MediaState from ocp_pipeline.opm import OCPPlayerProxy - +from ovos_plugin_manager.pipeline import OVOSPipelineFactory from ovos_bus_client.message import Message from ovos_bus_client.session import SessionManager, Session from ..minicroft import get_minicroft @@ -93,7 +93,7 @@ def tearDown(self) -> None: self.core.stop() def test_no_session(self): - self.assertIsNotNone(self.core.intent_service._ocp) + self.assertIsNotNone(OVOSPipelineFactory._CACHE.get("ovos-ocp-pipeline-plugin-high")) messages = [] def new_msg(msg): @@ -121,7 +121,8 @@ def wait_for_n_messages(n): "converse", "ocp_high" ]) - self.core.intent_service._ocp.ocp_sessions[sess.session_id] = OCPPlayerProxy( + + OVOSPipelineFactory._CACHE["ovos-ocp-pipeline-plugin-high"].ocp_sessions[sess.session_id] = OCPPlayerProxy( session_id=sess.session_id, available_extractors=[], ocp_available=True, player_state=PlayerState.STOPPED, media_state=MediaState.NO_MEDIA) utt = Message("recognizer_loop:utterance",