Skip to content

Commit

Permalink
fix:tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Nov 20, 2024
1 parent bc04486 commit c97136e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/end2end/routing/test_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit c97136e

Please sign in to comment.