##// END OF EJS Templates
use traitlets.tests.utils for help output tests...
Min RK -
Show More
@@ -1,15 +1,5 b''
1 1 """Test NotebookApp"""
2 2
3 #-----------------------------------------------------------------------------
4 # Copyright (C) 2013 The IPython Development Team
5 #
6 # Distributed under the terms of the BSD License. The full license is in
7 # the file COPYING, distributed as part of this software.
8 #-----------------------------------------------------------------------------
9
10 #-----------------------------------------------------------------------------
11 # Imports
12 #-----------------------------------------------------------------------------
13 3
14 4 import logging
15 5 import os
@@ -17,19 +7,17 b' from tempfile import NamedTemporaryFile'
17 7
18 8 import nose.tools as nt
19 9
10 from traitlets.tests.utils import check_help_all_output
11
20 12 from IPython.utils.tempdir import TemporaryDirectory
21 13 from IPython.utils.traitlets import TraitError
22 import IPython.testing.tools as tt
23 14 from IPython.html import notebookapp
24 15 NotebookApp = notebookapp.NotebookApp
25 16
26 #-----------------------------------------------------------------------------
27 # Test functions
28 #-----------------------------------------------------------------------------
29 17
30 18 def test_help_output():
31 19 """ipython notebook --help-all works"""
32 tt.help_all_output_test('notebook')
20 check_help_all_output('IPython.html')
33 21
34 22 def test_server_info_file():
35 23 nbapp = NotebookApp(profile='nbserver_file_test', log=logging.getLogger())
@@ -1,31 +1,21 b''
1 1 """Test HTML utils"""
2 2
3 #-----------------------------------------------------------------------------
4 # Copyright (C) 2013 The IPython Development Team
5 #
6 # Distributed under the terms of the BSD License. The full license is in
7 # the file COPYING, distributed as part of this software.
8 #-----------------------------------------------------------------------------
9
10 #-----------------------------------------------------------------------------
11 # Imports
12 #-----------------------------------------------------------------------------
3 # Copyright (c) Jupyter Development Team.
4 # Distributed under the terms of the Modified BSD License.
13 5
14 6 import os
15 7
16 8 import nose.tools as nt
17 9
18 import IPython.testing.tools as tt
10 from traitlets.tests.utils import check_help_all_output
19 11 from IPython.html.utils import url_escape, url_unescape, is_hidden
20 12 from IPython.utils.tempdir import TemporaryDirectory
21 13
22 #-----------------------------------------------------------------------------
23 # Test functions
24 #-----------------------------------------------------------------------------
25 14
26 15 def test_help_output():
27 """ipython notebook --help-all works"""
28 tt.help_all_output_test('notebook')
16 """jupyter notebook --help-all works"""
17 # FIXME: will be jupyter_notebook
18 check_help_all_output('IPython.html')
29 19
30 20
31 21 def test_url_escape():
@@ -1,28 +1,15 b''
1 """Tests for two-process terminal frontend
1 """Tests for two-process terminal frontend"""
2 2
3 Currently only has the most simple test possible, starting a console and running
4 a single command.
5
6 Authors:
7
8 * Min RK
9 """
10
11 #-----------------------------------------------------------------------------
12 # Imports
13 #-----------------------------------------------------------------------------
3 # Copyright (c) Jupyter Development Team.
4 # Distributed under the terms of the Modified BSD License.
14 5
15 6 import sys
16 7
17 8 from nose import SkipTest
18 9
19 import IPython.testing.tools as tt
10 from traitlets.tests.utils import check_help_all_output
20 11 from IPython.testing import decorators as dec
21 12
22 #-----------------------------------------------------------------------------
23 # Tests
24 #-----------------------------------------------------------------------------
25
26 13 @dec.skip_win32
27 14 def test_console_starts():
28 15 """test that `ipython console` starts a terminal"""
@@ -34,8 +21,7 b' def test_console_starts():'
34 21
35 22 def test_help_output():
36 23 """ipython console --help-all works"""
37 tt.help_all_output_test('console')
38
24 check_help_all_output('jupyter_console')
39 25
40 26 def test_display_text():
41 27 "Ensure display protocol plain/text key is supported"
@@ -11,7 +11,7 b' import sys'
11 11 from .base import TestsBase
12 12 from ..postprocessors import PostProcessorBase
13 13
14 import IPython.testing.tools as tt
14 from traitlets.tests.utils import check_help_all_output
15 15 from IPython.testing import decorators as dec
16 16
17 17 #-----------------------------------------------------------------------------
@@ -34,7 +34,7 b' class TestNbConvertApp(TestsBase):'
34 34
35 35 def test_help_output(self):
36 36 """ipython nbconvert --help-all works"""
37 tt.help_all_output_test('nbconvert')
37 check_help_all_output('jupyter_nbconvert')
38 38
39 39 def test_glob(self):
40 40 """
@@ -1,27 +1,15 b''
1 1 """Test QtConsoleApp"""
2 2
3 #-----------------------------------------------------------------------------
4 # Copyright (C) 2013 The IPython Development Team
5 #
6 # Distributed under the terms of the BSD License. The full license is in
7 # the file COPYING, distributed as part of this software.
8 #-----------------------------------------------------------------------------
9
10 #-----------------------------------------------------------------------------
11 # Imports
12 #-----------------------------------------------------------------------------
3 # Copyright (c) Jupyter Development Team.
4 # Distributed under the terms of the Modified BSD License.
13 5
14 6 import nose.tools as nt
15 7
16 import IPython.testing.tools as tt
8 from traitlets.tests.utils import check_help_all_output
17 9 from IPython.testing.decorators import skip_if_no_x11
18 10
19 #-----------------------------------------------------------------------------
20 # Test functions
21 #-----------------------------------------------------------------------------
22
23 11 @skip_if_no_x11
24 12 def test_help_output():
25 """ipython qtconsole --help-all works"""
26 tt.help_all_output_test('qtconsole')
13 """jupyter qtconsole --help-all works"""
14 check_help_all_output('jupyter_qtconsole')
27 15
General Comments 0
You need to be logged in to leave comments. Login now