Skip to content

Your lightweight open-source personal agent.

fix(ci): update live file edit test expectations

Xubin Ren40c1d83b320d
diff --git a/tests/agent/test_loop_progress.py b/tests/agent/test_loop_progress.py
index cace4e46c..974377472 100644
--- a/tests/agent/test_loop_progress.py
+++ b/tests/agent/test_loop_progress.py
@@ -133,6 +133,7 @@ class TestToolEventProgress:
"call_id": "call-write",
"tool": "write_file",
"path": "foo.txt",
+ "absolute_path": (tmp_path / "foo.txt").resolve().as_posix(),
"phase": "start",
"added": 2,
"deleted": 1,
diff --git a/tests/providers/test_openai_codex_provider.py b/tests/providers/test_openai_codex_provider.py
index ef9a91a79..e31b8547f 100644
--- a/tests/providers/test_openai_codex_provider.py
+++ b/tests/providers/test_openai_codex_provider.py
@@ -16,7 +16,15 @@ async def test_codex_prompt_cache_key_uses_stable_conversation_prefix(monkeypatc
lambda: SimpleNamespace(account_id="acct", access="token"),
)
- async def fake_request(url, headers, body, verify, on_content_delta=None):
+ async def fake_request(
+ url,
+ headers,
+ body,
+ verify,
+ on_content_delta=None,
+ on_tool_call_delta=None,
+ ):
+ _ = on_tool_call_delta
bodies.append(body)
return "ok", [], "stop"
diff --git a/tests/utils/test_file_edit_events.py b/tests/utils/test_file_edit_events.py
index 9180032cf..cdaae5167 100644
--- a/tests/utils/test_file_edit_events.py
+++ b/tests/utils/test_file_edit_events.py
@@ -46,7 +46,7 @@ def test_write_file_start_predicts_and_end_calibrates_exact_diff(tmp_path: Path)
"call_id": "call-write",
"tool": "write_file",
"path": "notes.txt",
- "absolute_path": (tmp_path / "notes.txt").as_posix(),
+ "absolute_path": (tmp_path / "notes.txt").resolve().as_posix(),
"phase": "start",
"added": 2,
"deleted": 1,
@@ -126,7 +126,7 @@ def test_streaming_write_file_tracker_emits_live_line_counts(tmp_path: Path) ->
"call_id": "call-live",
"tool": "write_file",
"path": "notes.md",
- "absolute_path": (tmp_path / "notes.md").as_posix(),
+ "absolute_path": (tmp_path / "notes.md").resolve().as_posix(),
"phase": "start",
"added": 0,
"deleted": 0,
@@ -270,7 +270,7 @@ def test_streaming_edit_file_tracker_emits_live_line_counts(tmp_path: Path) -> N
"call_id": "call-edit",
"tool": "edit_file",
"path": "notes.md",
- "absolute_path": (tmp_path / "notes.md").as_posix(),
+ "absolute_path": (tmp_path / "notes.md").resolve().as_posix(),
"phase": "start",
"added": 0,
"deleted": 2,