mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-05-20 08:32:25 +00:00
fix(ci): update live file edit test expectations
This commit is contained in:
parent
0537cc1682
commit
40c1d83b32
@ -133,6 +133,7 @@ class TestToolEventProgress:
|
|||||||
"call_id": "call-write",
|
"call_id": "call-write",
|
||||||
"tool": "write_file",
|
"tool": "write_file",
|
||||||
"path": "foo.txt",
|
"path": "foo.txt",
|
||||||
|
"absolute_path": (tmp_path / "foo.txt").resolve().as_posix(),
|
||||||
"phase": "start",
|
"phase": "start",
|
||||||
"added": 2,
|
"added": 2,
|
||||||
"deleted": 1,
|
"deleted": 1,
|
||||||
|
|||||||
@ -16,7 +16,15 @@ async def test_codex_prompt_cache_key_uses_stable_conversation_prefix(monkeypatc
|
|||||||
lambda: SimpleNamespace(account_id="acct", access="token"),
|
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)
|
bodies.append(body)
|
||||||
return "ok", [], "stop"
|
return "ok", [], "stop"
|
||||||
|
|
||||||
|
|||||||
@ -46,7 +46,7 @@ def test_write_file_start_predicts_and_end_calibrates_exact_diff(tmp_path: Path)
|
|||||||
"call_id": "call-write",
|
"call_id": "call-write",
|
||||||
"tool": "write_file",
|
"tool": "write_file",
|
||||||
"path": "notes.txt",
|
"path": "notes.txt",
|
||||||
"absolute_path": (tmp_path / "notes.txt").as_posix(),
|
"absolute_path": (tmp_path / "notes.txt").resolve().as_posix(),
|
||||||
"phase": "start",
|
"phase": "start",
|
||||||
"added": 2,
|
"added": 2,
|
||||||
"deleted": 1,
|
"deleted": 1,
|
||||||
@ -126,7 +126,7 @@ def test_streaming_write_file_tracker_emits_live_line_counts(tmp_path: Path) ->
|
|||||||
"call_id": "call-live",
|
"call_id": "call-live",
|
||||||
"tool": "write_file",
|
"tool": "write_file",
|
||||||
"path": "notes.md",
|
"path": "notes.md",
|
||||||
"absolute_path": (tmp_path / "notes.md").as_posix(),
|
"absolute_path": (tmp_path / "notes.md").resolve().as_posix(),
|
||||||
"phase": "start",
|
"phase": "start",
|
||||||
"added": 0,
|
"added": 0,
|
||||||
"deleted": 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",
|
"call_id": "call-edit",
|
||||||
"tool": "edit_file",
|
"tool": "edit_file",
|
||||||
"path": "notes.md",
|
"path": "notes.md",
|
||||||
"absolute_path": (tmp_path / "notes.md").as_posix(),
|
"absolute_path": (tmp_path / "notes.md").resolve().as_posix(),
|
||||||
"phase": "start",
|
"phase": "start",
|
||||||
"added": 0,
|
"added": 0,
|
||||||
"deleted": 2,
|
"deleted": 2,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user