Co-authored-by: Brice Carpentier <brice.carpentier@mistral.ai>
Co-authored-by: Clément Drouin <clement.drouin@mistral.ai>
Co-authored-by: Clément Sirieix <clement.sirieix@mistral.ai>
Co-authored-by: Kim-Adeline Miguel <51720070+kimadeline@users.noreply.github.com>
Co-authored-by: Lucas Marandat <31749711+lucasmrdt@users.noreply.github.com>
Co-authored-by: Michel Thomazo <51709227+michelTho@users.noreply.github.com>
Co-authored-by: Pierre Rossinès <pierre.rossines@mistral.ai>
Co-authored-by: Quentin <quentin.torroba@mistral.ai>
Co-authored-by: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
Mathias Gesbert 2026-04-29 17:20:27 +02:00 committed by GitHub
parent 632ea8c032
commit 1fd7eea289
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
63 changed files with 3482 additions and 301 deletions

View file

@ -288,7 +288,7 @@ class TestAcpSearchReplaceSessionUpdates:
assert update.content[0].new_text == "new text"
assert update.locations is not None
assert len(update.locations) == 1
assert update.locations[0].path == "/tmp/test.txt"
assert update.locations[0].path == str(Path("/tmp/test.txt").resolve())
def test_tool_call_session_update_invalid_args(self) -> None:
class InvalidArgs:
@ -302,7 +302,8 @@ class TestAcpSearchReplaceSessionUpdates:
)
update = SearchReplace.tool_call_session_update(event)
assert update is None
assert update is not None
assert update.title == "search_replace"
def test_tool_result_session_update(self) -> None:
search_replace_content = (
@ -337,7 +338,7 @@ class TestAcpSearchReplaceSessionUpdates:
assert update.content[0].new_text == "new text"
assert update.locations is not None
assert len(update.locations) == 1
assert update.locations[0].path == "/tmp/test.txt"
assert update.locations[0].path == str(Path("/tmp/test.txt").resolve())
def test_tool_result_session_update_invalid_result(self) -> None:
class InvalidResult:
@ -351,4 +352,5 @@ class TestAcpSearchReplaceSessionUpdates:
)
update = SearchReplace.tool_result_session_update(event)
assert update is None
assert update is not None
assert update.status == "failed"