feat: add final verification screen capture and update response structure
All checks were successful
CI / test (push) Successful in 6s
All checks were successful
CI / test (push) Successful in 6s
This commit is contained in:
@@ -67,8 +67,13 @@ def test_task_complete_captures_return_and_data(tmp_path: Path, monkeypatch) ->
|
||||
assert result["ok"] is True
|
||||
assert result["return"] == "Task completed successfully"
|
||||
assert result["data"] == "file1\nfile2"
|
||||
assert result["verification"]["ok"] is True
|
||||
verification_path = Path(result["verification"]["path"])
|
||||
assert verification_path.exists()
|
||||
assert verification_path.name.startswith("screen_final_verification_step_")
|
||||
assert agent.final_result == "Task completed successfully"
|
||||
assert agent.final_data == "file1\nfile2"
|
||||
assert agent.final_verification is not None
|
||||
|
||||
|
||||
def test_click_supports_directional_offsets(tmp_path: Path, monkeypatch) -> None:
|
||||
|
||||
@@ -35,6 +35,7 @@ def test_cli_emits_structured_return_and_data(monkeypatch: Any, capsys, tmp_path
|
||||
result="Done",
|
||||
return_message="Task completed successfully",
|
||||
data="file1.txt\nfile2.txt",
|
||||
verification={"ok": True, "path": "C:/tmp/final.png"},
|
||||
steps=3,
|
||||
started_at=10.0,
|
||||
ended_at=12.5,
|
||||
@@ -66,3 +67,4 @@ def test_cli_emits_structured_return_and_data(monkeypatch: Any, capsys, tmp_path
|
||||
assert payload["response"]["data"] == "file1.txt\nfile2.txt"
|
||||
assert payload["return"] == "Task completed successfully"
|
||||
assert payload["data"] == "file1.txt\nfile2.txt"
|
||||
assert payload["verification"] == {"ok": True, "path": "C:/tmp/final.png"}
|
||||
|
||||
Reference in New Issue
Block a user