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

@ -211,7 +211,7 @@ class TestAcpWriteFileSessionUpdates:
assert update.content[0].new_text == "Hello"
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:
from vibe.core.types import FunctionCall, ToolCall
@ -232,7 +232,8 @@ class TestAcpWriteFileSessionUpdates:
)
update = WriteFile.tool_call_session_update(event)
assert update is None
assert update is not None
assert update.title == "write_file"
def test_tool_result_session_update(self) -> None:
result = WriteFileResult(
@ -260,7 +261,7 @@ class TestAcpWriteFileSessionUpdates:
assert update.content[0].new_text == "Hello"
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:
@ -274,4 +275,5 @@ class TestAcpWriteFileSessionUpdates:
)
update = WriteFile.tool_result_session_update(event)
assert update is None
assert update is not None
assert update.status == "failed"