mirror of https://github.com/razor-ai/soup.git
fix: use ANSI-safe assertions in deploy help tests (macOS CI fix)
Rich markup in Typer help output inserts ANSI escape codes around --flag names on macOS, breaking exact string matches. Check for lowercase words instead of --prefixed flags.
This commit is contained in:
parent
ad819e32af
commit
a55f6745e9
|
|
@ -462,8 +462,8 @@ def test_deploy_ollama_help():
|
|||
result = runner.invoke(app, ["deploy", "ollama", "--help"])
|
||||
assert result.exit_code == 0
|
||||
assert "ollama" in result.output.lower()
|
||||
assert "--model" in result.output
|
||||
assert "--name" in result.output
|
||||
assert "model" in result.output.lower()
|
||||
assert "name" in result.output.lower()
|
||||
|
||||
|
||||
def test_deploy_help():
|
||||
|
|
@ -692,7 +692,7 @@ def test_deploy_create_fails(mock_detect_fn, mock_deploy_fn, tmp_path, monkeypat
|
|||
def test_export_deploy_flag_in_help():
|
||||
result = runner.invoke(app, ["export", "--help"])
|
||||
assert result.exit_code == 0
|
||||
assert "--deploy" in result.output
|
||||
assert "deploy" in result.output.lower()
|
||||
|
||||
|
||||
# ─── _auto_detect_template ───
|
||||
|
|
|
|||
Loading…
Reference in New Issue