test that -h and --help-all work for various IPython entry points

should help catch when we break these things.
This commit is contained in:
MinRK 2013-08-28 11:18:02 -07:00
parent dd52f45a35
commit 50b31960b3
2 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1,29 @@
"""Test NotebookApp"""
#-----------------------------------------------------------------------------
# Copyright (C) 2013 The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING, distributed as part of this software.
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# Imports
#-----------------------------------------------------------------------------
import nose.tools as nt
import IPython.testing.tools as tt
#-----------------------------------------------------------------------------
# Test functions
#-----------------------------------------------------------------------------
def test_help_output():
"""ipython notebook -h works"""
tt.help_output_test('notebook')
def test_help_all_output():
"""ipython notebook --help-all works"""
tt.help_all_output_test('notebook')

View File

@ -0,0 +1,29 @@
"""Test QtConsoleApp"""
#-----------------------------------------------------------------------------
# Copyright (C) 2013 The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING, distributed as part of this software.
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# Imports
#-----------------------------------------------------------------------------
import nose.tools as nt
import IPython.testing.tools as tt
#-----------------------------------------------------------------------------
# Test functions
#-----------------------------------------------------------------------------
def test_help_output():
"""ipython qtconsole -h works"""
tt.help_output_test('qtconsole')
def test_help_all_output():
"""ipython qtconsole --help-all works"""
tt.help_all_output_test('qtconsole')