mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
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:
parent
dd52f45a35
commit
50b31960b3
29
IPython/html/tests/test_notebookapp.py
Normal file
29
IPython/html/tests/test_notebookapp.py
Normal 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')
|
||||
|
29
IPython/qt/console/tests/test_app.py
Normal file
29
IPython/qt/console/tests/test_app.py
Normal 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')
|
||||
|
Loading…
Reference in New Issue
Block a user