Repository navigation
Commit 2222564
committed
Make system-prompt-file rejection test robust to CI color rendering
CI runs pytest with FORCE_COLOR, so the Rich usage-error panel carries ANSI
codes and width-based ellipsis — the long "Invalid value for
'--system-prompt-file'" substring no longer matched on the Windows/Linux
runners. Assert the behavioral distinction instead: a nonexistent
--system-prompt-file makes Typer reject before the body, so the sandbox guard
(the other exit-2 path) never runs and "sandbox" stays out of the output. This
still kills the exists=True mutant and is immune to ANSI/width.1 parent 6e07c58 commit 2222564
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
81 | 83 | | |
82 | 84 | | |
83 | | - | |
| 85 | + | |
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
| |||
0 commit comments