mirror of https://github.com/razor-ai/soup.git
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:
parent
1b1d679141
commit
eba63f2387
|
|
@ -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."""
|
||||
|
|
|
|||
Loading…
Reference in New Issue