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

Function test_ppaged_no_pager

tests/test_cmd2.py:3281–3287  ·  view source on GitHub ↗

Since we're not in a fully-functional terminal, ppaged() will just call poutput().

(outsim_app)

Source from the content-addressed store, hash-verified

3279
3280
3281def test_ppaged_no_pager(outsim_app) -> None:
3282 """Since we're not in a fully-functional terminal, ppaged() will just call poutput()."""
3283 msg = "testing..."
3284 end = "\n"
3285 outsim_app.ppaged(msg)
3286 out = outsim_app.stdout.getvalue()
3287 assert out == msg + end
3288
3289
3290@pytest.mark.skipif(sys.platform.startswith("win"), reason="termios is not available on Windows")

Callers

nothing calls this directly

Calls 2

ppagedMethod · 0.80
getvalueMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…