Since we're not in a fully-functional terminal, ppaged() will just call poutput().
(outsim_app)
| 3279 | |
| 3280 | |
| 3281 | def 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") |