-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test CLI using click.testing.CliRunner (#530)
* Test ‘build’ behaviour using a ‘click.testing.CliRunner’. This invokes the command behaviour consistently, without assuming any particular installed command name. * Use CliRunner for testing CLI standard output streams. * Document the improvement in a Towncrier news fragment. * Test ‘--version’ behaviour using a ‘click.testing.CliRunner’. This invokes the command behaviour consistently, without assuming any particular installed command name. * Test ‘--help’ behaviour using a ‘click.testing.CliRunner’. This invokes the command behaviour consistently, without assuming any particular installed command name. * Remove unused imports. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Semantic linefeeds * Markup --------- Co-authored-by: Ben Finney <ben+python@benfinney.id.au> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
2d47105
commit c0af1f8
Showing
3 changed files
with
24 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
``click.testing.CliRunner`` is now consistently used for testing CLI behaviour. | ||
|
||
This invokes the command behaviour consistently, without assuming any particular installed command name. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters