(base_app, capsys)
| 3223 | |
| 3224 | @with_ansi_style(ru.AllowStyle.ALWAYS) |
| 3225 | def test_pwarning(base_app, capsys) -> None: |
| 3226 | msg = "testing..." |
| 3227 | end = "\n" |
| 3228 | base_app.pwarning(msg) |
| 3229 | |
| 3230 | expected = su.stylize(msg + end, style=Cmd2Style.WARNING) |
| 3231 | _out, err = capsys.readouterr() |
| 3232 | assert err == expected |
| 3233 | |
| 3234 | |
| 3235 | @with_ansi_style(ru.AllowStyle.ALWAYS) |
nothing calls this directly
no test coverage detected
searching dependent graphs…