v2.9.0 (#641)
Co-authored-by: Antoine <33425718+anth2o@users.noreply.github.com> Co-authored-by: Bastien <bastien.baret@gmail.com> 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: Mathias Gesbert <mathias.gesbert@mistral.ai> Co-authored-by: Maxime Dolores <maxime.dolores@ext.mistral.ai> Co-authored-by: Michel Thomazo <51709227+michelTho@users.noreply.github.com> Co-authored-by: Nelson PROIA <144663685+Nelson-PROIA@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: Robin Gullo <robin.gullo@mistral.ai> Co-authored-by: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
a83c81ecf5
commit
632ea8c032
253 changed files with 13965 additions and 2525 deletions
|
|
@ -1,5 +1,6 @@
|
|||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Generator
|
||||
from pathlib import Path
|
||||
import sys
|
||||
from typing import Any
|
||||
|
|
@ -98,6 +99,7 @@ def _reset_trusted_folders_manager(config_dir: Path) -> None:
|
|||
trusted_folders_manager._file_path = config_dir / "trusted_folders.toml"
|
||||
trusted_folders_manager._trusted = []
|
||||
trusted_folders_manager._untrusted = []
|
||||
trusted_folders_manager._session_trusted = []
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
|
|
@ -108,6 +110,31 @@ def _init_harness_files_manager():
|
|||
reset_harness_files_manager()
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def _scratchpad_dir(
|
||||
monkeypatch: pytest.MonkeyPatch, tmp_path_factory: pytest.TempPathFactory
|
||||
) -> Generator[Path]:
|
||||
import vibe.core.scratchpad as scratchpad_mod
|
||||
|
||||
scratchpad_mod._active_scratchpads.clear()
|
||||
|
||||
scratchpad_root = tmp_path_factory.mktemp("scratchpad")
|
||||
_counter = 0
|
||||
|
||||
def _fake_mkdtemp(prefix: str = "") -> str:
|
||||
nonlocal _counter
|
||||
_counter += 1
|
||||
d = scratchpad_root / f"{prefix}{_counter}"
|
||||
d.mkdir(parents=True, exist_ok=True)
|
||||
return str(d)
|
||||
|
||||
monkeypatch.setattr("vibe.core.scratchpad.tempfile.mkdtemp", _fake_mkdtemp)
|
||||
|
||||
yield scratchpad_root
|
||||
|
||||
scratchpad_mod._active_scratchpads.clear()
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def _mock_api_key(monkeypatch: pytest.MonkeyPatch) -> None:
|
||||
monkeypatch.setenv("MISTRAL_API_KEY", "mock")
|
||||
|
|
@ -132,7 +159,7 @@ def _mock_update_commands(monkeypatch: pytest.MonkeyPatch) -> None:
|
|||
@pytest.fixture(autouse=True)
|
||||
def _disable_feedback_bar(monkeypatch: pytest.MonkeyPatch) -> None:
|
||||
monkeypatch.setattr(
|
||||
"vibe.cli.textual_ui.widgets.feedback_bar.FEEDBACK_PROBABILITY", 0
|
||||
"vibe.cli.textual_ui.widgets.feedback_bar_manager.FEEDBACK_PROBABILITY", 0
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue