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
|
|
@ -160,6 +160,32 @@ class TestAgentProfile:
|
|||
|
||||
|
||||
class TestAgentApplyToConfig:
|
||||
def test_profile_disabled_tools_are_merged_with_base_config(self) -> None:
|
||||
base = VibeConfig(
|
||||
include_project_context=False,
|
||||
include_prompt_detail=False,
|
||||
disabled_tools=["ask_user_question"],
|
||||
)
|
||||
|
||||
result = BUILTIN_AGENTS[BuiltinAgentName.DEFAULT].apply_to_config(base)
|
||||
|
||||
assert set(result.disabled_tools) == {"ask_user_question", "exit_plan_mode"}
|
||||
|
||||
def test_profile_disabled_tools_preserve_user_disabled_tools(self) -> None:
|
||||
base = VibeConfig(
|
||||
include_project_context=False,
|
||||
include_prompt_detail=False,
|
||||
disabled_tools=["ask_user_question", "custom_tool"],
|
||||
)
|
||||
|
||||
result = BUILTIN_AGENTS[BuiltinAgentName.AUTO_APPROVE].apply_to_config(base)
|
||||
|
||||
assert set(result.disabled_tools) == {
|
||||
"ask_user_question",
|
||||
"custom_tool",
|
||||
"exit_plan_mode",
|
||||
}
|
||||
|
||||
def test_custom_prompt_found_in_global_when_missing_from_project(
|
||||
self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch
|
||||
) -> None:
|
||||
|
|
@ -204,8 +230,9 @@ class TestAgentApplyToConfig:
|
|||
|
||||
|
||||
class TestAgentProfileOverrides:
|
||||
def test_default_agent_has_no_overrides(self) -> None:
|
||||
assert BUILTIN_AGENTS[BuiltinAgentName.DEFAULT].overrides == {}
|
||||
def test_default_agent_disables_exit_plan_mode(self) -> None:
|
||||
overrides = BUILTIN_AGENTS[BuiltinAgentName.DEFAULT].overrides
|
||||
assert "exit_plan_mode" in overrides.get("base_disabled", [])
|
||||
|
||||
def test_auto_approve_agent_sets_auto_approve(self) -> None:
|
||||
overrides = BUILTIN_AGENTS[BuiltinAgentName.AUTO_APPROVE].overrides
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue