Skip to content
Myr

test_termui.py

This file

Path

tests/test_termui.py

14 lines · 394 bytes · Python

Last changed by

Added termui testsArmin Ronacherbefore adoptiona939618

History of this file

Take it

Added termui testsArmin Ronacherbefore adoptiona939618

lines 1–14why, one step back
1import click
234def 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