Open
Description
After #1829, while using
runner = CliRunner()
result = runner.invoke(...)
result.output
contains the newline introduced by the wrappings due to auto detected terminal width. This is undesirable in test cases. As the docs says that these tools are made for testing only, IMO it would be better if the terminal width wrapping could be avoided in the output.
For now, I'm using runner.invoke(terminal_width=1000, ...)
in my test cases. Maybe having terminal_width=0
or a negative number could be treated an infinitely large terminal.
Environment:
- Python version: Python 3.9.5
- Click version: click==8.0.1