v2.18.2 (#857)
Co-authored-by: Cyprien <courtot.c@gmail.com> Co-authored-by: Guillaume LE GOFF <guillaume.lgf@gmail.com> 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: Pierre Rossinès <pierre.rossines@mistral.ai> Co-authored-by: Yousria <yousria.debaud@mistral.ai> Co-authored-by: renovate-mistral[bot] <253709520+renovate-mistral[bot]@users.noreply.github.com> Co-authored-by: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
ed5b7192e6
commit
d50704e694
110 changed files with 1663 additions and 764 deletions
30
tests/cli/test_voice_app_vim.py
Normal file
30
tests/cli/test_voice_app_vim.py
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
from __future__ import annotations
|
||||
|
||||
import pytest
|
||||
from textual import events
|
||||
|
||||
from vibe.cli.textual_ui.widgets.voice_app import VoiceApp
|
||||
from vibe.core.config import VibeConfig
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def app(monkeypatch: pytest.MonkeyPatch) -> VoiceApp:
|
||||
widget = VoiceApp(VibeConfig())
|
||||
monkeypatch.setattr(widget, "_update_display", lambda: None)
|
||||
return widget
|
||||
|
||||
|
||||
class TestVoiceAppVimKeybindings:
|
||||
def test_j_moves_down(self, app: VoiceApp):
|
||||
assert app.selected_index == 0
|
||||
|
||||
app.on_key(events.Key("j", "j"))
|
||||
|
||||
assert app.selected_index == 1
|
||||
|
||||
def test_k_wraps_to_last(self, app: VoiceApp):
|
||||
assert app.selected_index == 0
|
||||
|
||||
app.on_key(events.Key("k", "k"))
|
||||
|
||||
assert app.selected_index == len(app.settings) - 1
|
||||
Loading…
Add table
Add a link
Reference in a new issue