MCPcopy Index your code
hub / github.com/python-cmd2/cmd2 / test_perror_style

Function test_perror_style

tests/test_cmd2.py:3198–3202  ·  view source on GitHub ↗
(base_app, capsys)

Source from the content-addressed store, hash-verified

3196
3197@with_ansi_style(ru.AllowStyle.ALWAYS)
3198def test_perror_style(base_app, capsys) -> None:
3199 msg = "testing..."
3200 base_app.perror(msg)
3201 _out, err = capsys.readouterr()
3202 assert err == "\x1b[91mtesting...\x1b[0m\n"
3203
3204
3205@with_ansi_style(ru.AllowStyle.ALWAYS)

Callers

nothing calls this directly

Calls 1

perrorMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…