fix: update mocks in test_goal_verdict_send.py to match 5-tuple judge_goal return value

This commit is contained in:
João Vitor Cunha 2026-06-28 20:07:59 -03:00 committed by Teknium
parent 48fc1d780b
commit 3b4f96ce94
1 changed files with 4 additions and 4 deletions

View File

@ -107,7 +107,7 @@ async def test_goal_verdict_done_sent_via_adapter_send(hermes_home):
mgr = GoalManager(session_entry.session_id)
mgr.set("ship the feature")
with patch("hermes_cli.goals.judge_goal", return_value=("done", "the feature shipped", False, None)):
with patch("hermes_cli.goals.judge_goal", return_value=("done", "the feature shipped", False, None, False)):
await runner._post_turn_goal_continuation(
session_entry=session_entry,
source=src,
@ -136,7 +136,7 @@ async def test_goal_verdict_continue_enqueues_continuation(hermes_home):
mgr = GoalManager(session_entry.session_id)
mgr.set("polish the docs")
with patch("hermes_cli.goals.judge_goal", return_value=("continue", "still needs work", False, None)):
with patch("hermes_cli.goals.judge_goal", return_value=("continue", "still needs work", False, None, False)):
await runner._post_turn_goal_continuation(
session_entry=session_entry,
source=src,
@ -164,7 +164,7 @@ async def test_goal_verdict_budget_exhausted_sends_pause(hermes_home):
state.turns_used = 2
save_goal(session_entry.session_id, state)
with patch("hermes_cli.goals.judge_goal", return_value=("continue", "keep going", False, None)):
with patch("hermes_cli.goals.judge_goal", return_value=("continue", "keep going", False, None, False)):
await runner._post_turn_goal_continuation(
session_entry=session_entry,
source=src,
@ -211,7 +211,7 @@ async def test_goal_verdict_survives_adapter_without_send(hermes_home):
runner.adapters[Platform.TELEGRAM] = _NoSendAdapter()
with patch("hermes_cli.goals.judge_goal", return_value=("done", "ok", False, None)):
with patch("hermes_cli.goals.judge_goal", return_value=("done", "ok", False, None, False)):
# must not raise
await runner._post_turn_goal_continuation(
session_entry=session_entry,