Skip to content
Myr

Added termui tests

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 36112b1 · Browse files · 1 file+14 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+14 added−0 removed

  • tests:+14 added−0 removed

1 file+14 added−0 removed

added:tests/test_termui.py+14 added
1import click234def test_progressbar_strip_regression(runner, monkeypatch):5 label = ' padded line'67 @click.command()8 def cli():9 with click.progressbar(tuple(range(10)), label=label) as progress:10 for thing in progress:11 pass1213 monkeypatch.setattr(click._termui_impl, 'isatty', lambda _: True)14 assert label in runner.invoke(cli, []).output