fix: allow exit code 2 for `soup recipes` no-args help (Typer compat)

Different Typer versions return exit code 0 or 2 for no_args_is_help.
Accept both in the test to fix CI on macOS/Python 3.11.
This commit is contained in:
Alpamys 2026-04-02 14:12:32 +05:00
parent 1b1d679141
commit eba63f2387
1 changed files with 2 additions and 2 deletions

View File

@ -121,9 +121,9 @@ class TestRecipesCLI:
assert "llama3.1-8b-sft" in result.output
def test_list_default(self):
"""soup recipes (no subcommand) shows help."""
"""soup recipes (no subcommand) shows help (exit 0 or 2 depending on Typer version)."""
result = runner.invoke(app, ["recipes"])
assert result.exit_code == 0
assert result.exit_code in (0, 2)
def test_show_recipe(self):
"""soup recipes show <name> prints YAML."""