test that `ipython [subcommand] -h` works
(subcommand='')
| 414 | return patch('builtins.input', mock_input) |
| 415 | |
| 416 | def help_output_test(subcommand=''): |
| 417 | """test that `ipython [subcommand] -h` works""" |
| 418 | cmd = get_ipython_cmd() + [subcommand, '-h'] |
| 419 | out, err, rc = get_output_error_code(cmd) |
| 420 | assert rc == 0, err |
| 421 | assert "Traceback" not in err |
| 422 | assert "Options" in out |
| 423 | assert "--help-all" in out |
| 424 | return out, err |
| 425 | |
| 426 | |
| 427 | def help_all_output_test(subcommand=''): |
nothing calls this directly
no test coverage detected
searching dependent graphs…