Co-authored-by: Clément Drouin <clement.drouin@mistral.ai>
Co-authored-by: Laure Hugo <201583486+laure0303@users.noreply.github.com>
Co-authored-by: Paul VEZIA <166131032+le-codeur-rapide@users.noreply.github.com>
Co-authored-by: Peter Evers <peter.evers@mistral.ai>
Co-authored-by: Jules YZERD <newtonlormont@gmail.com>
Co-authored-by: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
Mathias Gesbert 2026-06-30 15:03:21 +02:00 committed by GitHub
parent d50704e694
commit 4e495f658d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
130 changed files with 1042 additions and 552 deletions

View file

@ -7,6 +7,7 @@ import pytest
from rich.text import Text
from textual.widgets import OptionList
from vibe.cli.textual_ui.shortcut_hints import SHORTCUT_STYLE
from vibe.cli.textual_ui.widgets.session_picker import (
SessionPickerApp,
_format_relative_time,
@ -170,7 +171,7 @@ class TestSessionPickerAppBindings:
def test_has_delete_binding(self) -> None:
assert "d" in self._get_binding_keys()
assert "D" in self._get_binding_keys()
assert "D" not in self._get_binding_keys()
class TestSessionPickerSessionRemoval:
@ -192,9 +193,9 @@ class TestSessionPickerSessionRemoval:
assert_delete_state(picker, kind="confirmation", option_id="session-a")
assert option_list.replaced_prompts[-1].option_id == "session-a"
assert (
"Press D again to delete" in option_list.replaced_prompts[-1].prompt.plain
)
prompt = option_list.replaced_prompts[-1].prompt
assert "Press d again to delete" in prompt.plain
assert any(span.style == SHORTCUT_STYLE for span in prompt.spans)
assert posted_messages == []
def test_second_delete_request_posts_delete_message(