()
| 712 | |
| 713 | |
| 714 | def test_exit_not_standalone(): |
| 715 | @click.command() |
| 716 | @click.pass_context |
| 717 | def cli(ctx): |
| 718 | ctx.exit(1) |
| 719 | |
| 720 | assert cli.main([], "test_exit_not_standalone", standalone_mode=False) == 1 |
| 721 | |
| 722 | @click.command() |
| 723 | @click.pass_context |
| 724 | def cli(ctx): |
| 725 | ctx.exit(0) |
| 726 | |
| 727 | assert cli.main([], "test_exit_not_standalone", standalone_mode=False) == 0 |
| 728 | |
| 729 | |
| 730 | @pytest.mark.parametrize( |
nothing calls this directly
no test coverage detected
searching dependent graphs…