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

Function test_pexcept_no_style

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

Source from the content-addressed store, hash-verified

3244
3245@with_ansi_style(ru.AllowStyle.NEVER)
3246def test_pexcept_no_style(base_app, capsys) -> None:
3247 msg = Exception("testing...")
3248
3249 base_app.pexcept(msg)
3250 _out, err = capsys.readouterr()
3251 assert err.startswith("Exception: testing...")
3252
3253
3254@pytest.mark.parametrize("chop", [True, False])

Callers

nothing calls this directly

Calls 1

pexceptMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…