MCPcopy Create free account
hub / github.com/ipython/ipython / help_output_test

Function help_output_test

IPython/testing/tools.py:451–459  ·  view source on GitHub ↗

test that `ipython [subcommand] -h` works

(subcommand='')

Source from the content-addressed store, hash-verified

449 return patch('builtins.input', mock_input)
450
451def help_output_test(subcommand=''):
452 """test that `ipython [subcommand] -h` works"""
453 cmd = get_ipython_cmd() + [subcommand, '-h']
454 out, err, rc = get_output_error_code(cmd)
455 nt.assert_equal(rc, 0, err)
456 nt.assert_not_in("Traceback", err)
457 nt.assert_in("Options", out)
458 nt.assert_in("--help-all", out)
459 return out, err
460
461
462def help_all_output_test(subcommand=''):

Callers

nothing calls this directly

Calls 2

get_output_error_codeFunction · 0.90
get_ipython_cmdFunction · 0.85

Tested by

no test coverage detected