diff options
author | Joe Jevnik <joe@quantopian.com> | 2016-03-09 14:59:44 -0500 |
---|---|---|
committer | Stephen Rosen <sirosen@uchicago.edu> | 2018-08-26 18:20:53 -0400 |
commit | 225736b9eaa5cea30356d3a48e5c2bbe788e6298 (patch) | |
tree | 4b07fee5cfc01b697a2f160be25f0c68a3eec054 /tests/test_context.py | |
parent | 4308336623cfd8da36474581dae6bcabe4e3abe7 (diff) | |
download | click-225736b9eaa5cea30356d3a48e5c2bbe788e6298.tar.gz |
add tests for the runner when the app uses context.exit
Diffstat (limited to 'tests/test_context.py')
-rw-r--r-- | tests/test_context.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_context.py b/tests/test_context.py index f0dfedb..cad2ae3 100644 --- a/tests/test_context.py +++ b/tests/test_context.py @@ -206,6 +206,7 @@ def test_close_before_pop(runner): assert result.output == 'aha!\n' assert called == [True] + def test_make_pass_decorator_args(runner): """ Test to check that make_pass_decorator doesn't consume arguments based on @@ -241,6 +242,7 @@ def test_make_pass_decorator_args(runner): assert not result.exception assert result.output == 'foocmd\n' + def test_exit_not_standalone_failure(): @click.command() @click.pass_context |