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

Function test_perror_no_style

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

Source from the content-addressed store, hash-verified

3204
3205@with_ansi_style(ru.AllowStyle.ALWAYS)
3206def test_perror_no_style(base_app, capsys) -> None:
3207 msg = "testing..."
3208 end = "\n"
3209 base_app.perror(msg, style=None)
3210 _out, err = capsys.readouterr()
3211 assert err == msg + end
3212
3213
3214@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…