本文整理汇总了Python中traitlets.tests.utils.check_help_all_output函数的典型用法代码示例。如果您正苦于以下问题:Python check_help_all_output函数的具体用法?Python check_help_all_output怎么用?Python check_help_all_output使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了check_help_all_output函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: test_00_help_output
def test_00_help_output(self):
"""Check that app help works."""
app_module = 'jupyter_contrib_core.application'
check_help_output(app_module, [])
check_help_all_output(app_module, [])
# sys.exit should be called if no argv specified
with nt.assert_raises(SystemExit):
main_app([])
开发者ID:Jupyter-contrib,项目名称:jupyter_contrib_core,代码行数:8,代码来源:test_application.py
示例2: test_01_help_output
def test_01_help_output(self):
"""Check that app help works."""
app_module = 'jupyter_nbextensions_configurator.application'
for argv in (['enable'], ['disable']):
check_help_output(app_module, argv)
check_help_all_output(app_module, argv)
# sys.exit should be called if no argv specified
with nt.assert_raises(SystemExit):
main_app([])
开发者ID:gitter-badger,项目名称:jupyter_nbextensions_configurator-1,代码行数:9,代码来源:test_application.py
示例3: test_01_help_output
def test_01_help_output(self):
"""Check that app help works."""
app_module = 'jupyter_contrib_nbextensions.application'
for subcommand in (None, ['install'], ['uninstall']):
check_help_output(app_module, subcommand=subcommand)
check_help_all_output(app_module, subcommand=subcommand)
# sys.exit should be called if empty argv specified
with nt.assert_raises(SystemExit):
main_app([])
开发者ID:flipphillips,项目名称:IPython-notebook-extensions,代码行数:9,代码来源:test_application.py
示例4: test_help_output
def test_help_output():
"""jupyter notebook --help-all works"""
# FIXME: will be jupyter_notebook
check_help_all_output('jupyter_notebook')
开发者ID:dpinsard,项目名称:jupyter_students,代码行数:4,代码来源:test_utils.py
示例5: test_help_output
def test_help_output():
check_help_output(__name__)
check_help_all_output(__name__)
开发者ID:brbsix,项目名称:traitlets,代码行数:3,代码来源:test_application.py
示例6: test_help_output
def test_help_output():
check_help_all_output('notebook.bundler.bundlerextensions')
check_help_all_output('notebook.bundler.bundlerextensions', ['enable'])
check_help_all_output('notebook.bundler.bundlerextensions', ['disable'])
开发者ID:JCEmmons,项目名称:notebook,代码行数:4,代码来源:test_bundlerextension.py
示例7: test_help_output
def test_help_output(self):
"""ipython nbconvert --help-all works"""
check_help_all_output("nbconvert")
开发者ID:Carreau,项目名称:nbconvert,代码行数:3,代码来源:test_nbconvertapp.py
示例8: test_help_output
def test_help_output():
check_help_all_output('notebook.serverextensions')
check_help_all_output('notebook.serverextensions', ['enable'])
check_help_all_output('notebook.serverextensions', ['disable'])
check_help_all_output('notebook.serverextensions', ['install'])
check_help_all_output('notebook.serverextensions', ['uninstall'])
开发者ID:Carreau,项目名称:jupyter_notebook,代码行数:6,代码来源:test_serverextensions.py
注:本文中的traitlets.tests.utils.check_help_all_output函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论