예제 #1
0
 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 pytest.raises(SystemExit):
         main_app([])
 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([])
예제 #3
0
 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([])
 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([])
 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([])
예제 #6
0
 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([])
예제 #7
0
def test_help_output():
    check_help_output(__name__)
    check_help_all_output(__name__)
예제 #8
0
def test_help_output():
    check_help_output(__name__)
    check_help_all_output(__name__)