From eba63f23876c3c68ecbfdf8c7d2b78ffcbcd5fca Mon Sep 17 00:00:00 2001 From: Alpamys Date: Thu, 2 Apr 2026 14:12:32 +0500 Subject: [PATCH] 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. --- tests/test_recipes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_recipes.py b/tests/test_recipes.py index 168d2ac..8fdf01b 100644 --- a/tests/test_recipes.py +++ b/tests/test_recipes.py @@ -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 prints YAML."""