(base_app, capsys)
| 3234 | |
| 3235 | @with_ansi_style(ru.AllowStyle.ALWAYS) |
| 3236 | def test_pexcept_style(base_app, capsys) -> None: |
| 3237 | msg = Exception("testing...") |
| 3238 | |
| 3239 | base_app.pexcept(msg) |
| 3240 | _out, err = capsys.readouterr() |
| 3241 | expected = su.stylize("Exception: ", style="traceback.exc_type") |
| 3242 | assert err.startswith(expected) |
| 3243 | |
| 3244 | |
| 3245 | @with_ansi_style(ru.AllowStyle.NEVER) |
nothing calls this directly
no test coverage detected
searching dependent graphs…