Commit 4ffef84
fix(ci): robustify --skip-patch-agents help assertions against width truncation
The three smoke tests (install/repair/init) were red on GitHub Actions because
Rich/Typer truncates long flag tokens with U+2026 at width-dependent boundaries.
Locally COLUMNS=200 (set in _run) is honored; on CI under pytest stdout capture
the effective width clips to ~80, rendering --skip-patch-agents as
'--skip-patch-age…'. CI has been red on every push since 2b093dc (#08.1-04).
Replace the literal-flag substring assertion with two width-stable anchors:
- 'skip-patch-ag' — short prefix that survives any reasonable truncation
- 'D-LOCK-06' — unique description tag that always renders intact via word-wrap
This still verifies the flag is documented with the right rationale, without
coupling the test to terminal width.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent d4a6936 commit 4ffef84
1 file changed
Lines changed: 16 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
262 | 268 | | |
263 | 269 | | |
264 | | - | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
265 | 273 | | |
266 | 274 | | |
267 | 275 | | |
268 | 276 | | |
269 | 277 | | |
270 | 278 | | |
271 | | - | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
272 | 282 | | |
273 | 283 | | |
274 | 284 | | |
275 | 285 | | |
276 | 286 | | |
277 | 287 | | |
278 | | - | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
279 | 291 | | |
280 | 292 | | |
281 | 293 | | |
| |||
0 commit comments