Skip to content

Commit

Permalink
dont access deprecated stuff in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Nov 2, 2024
1 parent 5a888ec commit d16a335
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 61 deletions.
4 changes: 2 additions & 2 deletions test/end2end/routing/test_session.py
Original file line number Diff line number Diff line change
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(self.core.intent_service._ocp)
messages = []

def new_msg(msg):
Expand Down Expand Up @@ -121,7 +121,7 @@ def wait_for_n_messages(n):
"converse",
"ocp_high"
])
self.core.intent_service.ocp.ocp_sessions[sess.session_id] = OCPPlayerProxy(
self.core.intent_service._ocp.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
4 changes: 2 additions & 2 deletions test/end2end/session/test_blacklist.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def tearDown(self) -> None:
self.core.stop()

def test_ocp(self):
self.assertIsNotNone(self.core.intent_service.ocp)
self.assertIsNotNone(self.core.intent_service._ocp)
messages = []

def new_msg(msg):
Expand All @@ -160,7 +160,7 @@ def wait_for_n_messages(n):
pipeline=[
"ocp_high"
])
self.core.intent_service.ocp.ocp_sessions[sess.session_id] = OCPPlayerProxy(
self.core.intent_service._ocp.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
Loading

0 comments on commit d16a335

Please sign in to comment.