()
| 257 | |
| 258 | |
| 259 | def test_with_echo_via_pager(): |
| 260 | @click.command() |
| 261 | def cli(): |
| 262 | click.echo_via_pager("Hello, Click!") |
| 263 | |
| 264 | runner = CliRunner() |
| 265 | result = runner.invoke(cli) |
| 266 | assert not result.exception |
| 267 | assert result.output == "Hello, Click!\n" |
| 268 | |
| 269 | |
| 270 | def test_exit_code_and_output_from_sys_exit(): |