(outsim_app)
| 3213 | |
| 3214 | @with_ansi_style(ru.AllowStyle.ALWAYS) |
| 3215 | def test_psuccess(outsim_app) -> None: |
| 3216 | msg = "testing..." |
| 3217 | end = "\n" |
| 3218 | outsim_app.psuccess(msg) |
| 3219 | |
| 3220 | expected = su.stylize(msg + end, style=Cmd2Style.SUCCESS) |
| 3221 | assert outsim_app.stdout.getvalue() == expected |
| 3222 | |
| 3223 | |
| 3224 | @with_ansi_style(ru.AllowStyle.ALWAYS) |