Skip to content
Myr

Merge pull request #1084 from simonw/patch-2

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

Document extra keyword arguments to .invoke()

authored by Dan Sully · committed by GitHub · parents dbc785f, 997226a · Browse files · 1 file+5 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+5 added−0 removed

  • other:+5 added−0 removed

1 file+5 added−0 removed

modified:docs/testing.rst+5 added
59 unmodified lines
60 assert result.exit_code == 061 assert 'Debug mode is on' in result.output62 assert 'Syncing' in result.output6364Additional keyword arguments passed to ``.invoke()`` will be used to construct the initial Context object. For example, if you want to run your tests against a fixed terminal width you can use the following::6566 runner = CliRunner()67 result = runner.invoke(cli, ['--debug', 'sync'], terminal_width=60)6869File System Isolation70---------------------7172For basic command line tools that want to operate with the file system, the
46 unmodified lines