Co-authored-by: Albert Jiang <aj@mistral.ai>
Co-authored-by: Clément Drouin <clement.drouin@mistral.ai>
Co-authored-by: Laure Hugo <201583486+laure0303@users.noreply.github.com>
Co-authored-by: Mathias Gesbert <mathias.gesbert@mistral.ai>
Co-authored-by: Mert Unsal <mert.unsal@mistral.ai>
Co-authored-by: Michel Thomazo <51709227+michelTho@users.noreply.github.com>
Co-authored-by: Paul VEZIA <166131032+le-codeur-rapide@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: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
maiengineering 2026-07-01 19:03:09 +02:00 committed by GitHub
parent 4e495f658d
commit ac8f1a09fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
83 changed files with 1979 additions and 572 deletions

View file

@ -17,7 +17,8 @@ def test_help_shows_auto_approve_flag(
output = capsys.readouterr().out
assert "--auto-approve" in output
assert "--yolo" in output
assert "Shortcut for --agent auto-approve" in output
assert "Approves all tool calls without prompting" in output
assert "selected agent" in output
def test_help_shows_check_upgrade_flag(
@ -47,13 +48,12 @@ def test_yolo_alias_selects_auto_approve(monkeypatch: pytest.MonkeyPatch) -> Non
@pytest.mark.parametrize("flag", ["--auto-approve", "--yolo"])
def test_auto_approve_aliases_conflict_with_agent(
flag: str, monkeypatch: pytest.MonkeyPatch, capsys: pytest.CaptureFixture[str]
def test_auto_approve_aliases_can_be_combined_with_agent(
flag: str, monkeypatch: pytest.MonkeyPatch
) -> None:
monkeypatch.setattr("sys.argv", ["vibe", "--agent", "plan", flag])
monkeypatch.setattr("sys.argv", ["vibe", "--agent", "lean", flag])
with pytest.raises(SystemExit) as exc_info:
parse_arguments()
args = parse_arguments()
assert exc_info.value.code == 2
assert "not allowed with argument --agent" in capsys.readouterr().err
assert args.agent == "lean"
assert args.auto_approve is True