MCPcopy
hub / github.com/pallets/click / test_with_echo_via_pager

Function test_with_echo_via_pager

tests/test_testing.py:259–267  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

257
258
259def 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
270def test_exit_code_and_output_from_sys_exit():

Callers

nothing calls this directly

Calls 2

invokeMethod · 0.95
CliRunnerClass · 0.90

Tested by

no test coverage detected