MCPcopy Index your code
hub / github.com/ipython/ipython / help_output_test

Function help_output_test

IPython/testing/tools.py:416–424  ·  view source on GitHub ↗

test that `ipython [subcommand] -h` works

(subcommand='')

Source from the content-addressed store, hash-verified

414 return patch('builtins.input', mock_input)
415
416def 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
427def 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…