Commit 230987e
test: compare command help against whitespace-normalized output
The fetch-and-pack help description is long enough that Click wraps it across
lines in `--help` output, so the raw single-line help string was no longer a
substring of the output and `test_command_help` failed. Collapse whitespace on
both sides before the substring check so the assertion is insensitive to
terminal-width line wrapping.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent d03746d commit 230987e
1 file changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
6 | 20 | | |
7 | 21 | | |
8 | 22 | | |
| |||
31 | 45 | | |
32 | 46 | | |
33 | 47 | | |
34 | | - | |
| 48 | + | |
35 | 49 | | |
36 | 50 | | |
37 | 51 | | |
| |||
0 commit comments