gabriel / muse public
fix tests main #49 / 100

fix(tests): guard help assertions against Rich ANSI codes between '--' dashes

Rich's terminal renderer injects color codes between the two dashes of a long flag (e.g. '--force' becomes '-\x1b[...]-force'), so asserting '--force' in result.output fails in CI even though the flag is present.

Fix both tests to fall back to the short flag: test_clean_help: '--force' in output or '-f' in output test_verify_cli_help: '--no-objects' in output or '-O' in output

Consistent with the existing pattern in test_cmd_rebase.py and test_cmd_describe.py.

G Gabriel Cardona <gabriel@tellurstori.com> · 2d ago Mar 21, 2026 · 229172a6 · parent ba28f1ce
3
files changed
426
files in snapshot
Files Changed 426 in snapshot
~3

0 comments

No comments yet. Be the first to start the discussion.