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

Function test_pwarning

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

Source from the content-addressed store, hash-verified

3223
3224@with_ansi_style(ru.AllowStyle.ALWAYS)
3225def 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)

Callers

nothing calls this directly

Calls 1

pwarningMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…