v2.6.0 (#524)
Co-authored-by: Clément Drouin <clement.drouin@mistral.ai> Co-authored-by: Clément Sirieix <clement.sirieix@mistral.ai> Co-authored-by: Gauthier Guinet <43207538+Gguinet@users.noreply.github.com> Co-authored-by: Kim-Adeline Miguel <kimadeline.miguel@mistral.ai> Co-authored-by: Michel Thomazo <51709227+michelTho@users.noreply.github.com> Co-authored-by: Quentin <torroba.q@gmail.com> Co-authored-by: Simon <80467011+sorgfresser@users.noreply.github.com> Co-authored-by: Simon Van de Kerckhove <simon.vandekerckhove@mistral.ai> Co-authored-by: Vincent G <10739306+VinceOPS@users.noreply.github.com> Co-authored-by: angelapopopo <angele.lenglemetz@mistral.ai> Co-authored-by: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
5103019b01
commit
eb580209d4
180 changed files with 11136 additions and 1030 deletions
|
|
@ -2,6 +2,7 @@ from __future__ import annotations
|
|||
|
||||
from textual.pilot import Pilot
|
||||
|
||||
from tests.conftest import build_test_vibe_config
|
||||
from tests.mock.utils import mock_llm_chunk
|
||||
from tests.snapshots.base_snapshot_test_app import BaseSnapshotTestApp
|
||||
from tests.snapshots.snap_compare import SnapCompare
|
||||
|
|
@ -17,7 +18,14 @@ class VoiceEnableApp(BaseSnapshotTestApp):
|
|||
|
||||
class VoiceDisableApp(BaseSnapshotTestApp):
|
||||
def __init__(self) -> None:
|
||||
super().__init__(voice_manager=FakeVoiceManager(is_voice_ready=True))
|
||||
config = build_test_vibe_config(
|
||||
disable_welcome_banner_animation=True,
|
||||
displayed_workdir="/test/workdir",
|
||||
voice_mode_enabled=True,
|
||||
)
|
||||
super().__init__(
|
||||
config=config, voice_manager=FakeVoiceManager(is_voice_ready=True)
|
||||
)
|
||||
|
||||
|
||||
class RecordingActiveApp(BaseSnapshotTestApp):
|
||||
|
|
@ -49,6 +57,10 @@ def test_snapshot_voice_enable(snap_compare: SnapCompare) -> None:
|
|||
await pilot.press(*"/voice")
|
||||
await pilot.press("enter")
|
||||
await pilot.pause(0.4)
|
||||
await pilot.press("space")
|
||||
await pilot.pause(0.2)
|
||||
await pilot.press("escape")
|
||||
await pilot.pause(0.4)
|
||||
|
||||
assert snap_compare(
|
||||
"test_ui_snapshot_voice_mode.py:VoiceEnableApp",
|
||||
|
|
@ -62,6 +74,10 @@ def test_snapshot_voice_disable(snap_compare: SnapCompare) -> None:
|
|||
await pilot.press(*"/voice")
|
||||
await pilot.press("enter")
|
||||
await pilot.pause(0.4)
|
||||
await pilot.press("space")
|
||||
await pilot.pause(0.2)
|
||||
await pilot.press("escape")
|
||||
await pilot.pause(0.4)
|
||||
|
||||
assert snap_compare(
|
||||
"test_ui_snapshot_voice_mode.py:VoiceDisableApp",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue