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

Function test_secho_non_text

tests/test_termui.py:272–276  ·  view source on GitHub ↗
(runner, value, expect)

Source from the content-addressed store, hash-verified

270 ("value", "expect"), [(123, b"\x1b[45m123\x1b[0m"), (b"test", b"test")]
271)
272def test_secho_non_text(runner, value, expect):
273 with runner.isolation() as (out, _, _):
274 click.secho(value, nl=False, color=True, bg="magenta")
275 result = out.getvalue()
276 assert result == expect
277
278
279def test_progressbar_yields_all_items(runner):

Callers

nothing calls this directly

Calls 2

isolationMethod · 0.80
getvalueMethod · 0.80

Tested by

no test coverage detected