##// END OF EJS Templates
skip tests that require pandoc
Paul Ivanov -
Show More
@@ -1,39 +1,40 b''
1 """
1 """
2 Module with tests for basichtml.py
2 Module with tests for basichtml.py
3 """
3 """
4
4
5 #-----------------------------------------------------------------------------
5 #-----------------------------------------------------------------------------
6 # Copyright (c) 2013, the IPython Development Team.
6 # Copyright (c) 2013, the IPython Development Team.
7 #
7 #
8 # Distributed under the terms of the Modified BSD License.
8 # Distributed under the terms of the Modified BSD License.
9 #
9 #
10 # The full license is in the file COPYING.txt, distributed with this software.
10 # The full license is in the file COPYING.txt, distributed with this software.
11 #-----------------------------------------------------------------------------
11 #-----------------------------------------------------------------------------
12
12
13 #-----------------------------------------------------------------------------
13 #-----------------------------------------------------------------------------
14 # Imports
14 # Imports
15 #-----------------------------------------------------------------------------
15 #-----------------------------------------------------------------------------
16
16
17 from .base import ExportersTestsBase
17 from .base import ExportersTestsBase
18 from ..basichtml import BasicHTMLExporter
18 from ..basichtml import BasicHTMLExporter
19 from IPython.testing.decorators import onlyif_cmds_exist
19
20
20 #-----------------------------------------------------------------------------
21 #-----------------------------------------------------------------------------
21 # Class
22 # Class
22 #-----------------------------------------------------------------------------
23 #-----------------------------------------------------------------------------
23
24
24 class TestBasicHTMLExporter(ExportersTestsBase):
25 class TestBasicHTMLExporter(ExportersTestsBase):
25 """Contains test functions for basichtml.py"""
26 """Contains test functions for basichtml.py"""
26
27
27 def test_constructor(self):
28 def test_constructor(self):
28 """
29 """
29 Can a BasicHTMLExporter be constructed?
30 Can a BasicHTMLExporter be constructed?
30 """
31 """
31 BasicHTMLExporter()
32 BasicHTMLExporter()
32
33
33
34 @onlyif_cmds_exist('pandoc')
34 def test_export(self):
35 def test_export(self):
35 """
36 """
36 Can a BasicHTMLExporter export something?
37 Can a BasicHTMLExporter export something?
37 """
38 """
38 (output, resources) = BasicHTMLExporter().from_filename(self._get_notebook())
39 (output, resources) = BasicHTMLExporter().from_filename(self._get_notebook())
39 assert len(output) > 0 No newline at end of file
40 assert len(output) > 0
@@ -1,39 +1,40 b''
1 """
1 """
2 Module with tests for fullhtml.py
2 Module with tests for fullhtml.py
3 """
3 """
4
4
5 #-----------------------------------------------------------------------------
5 #-----------------------------------------------------------------------------
6 # Copyright (c) 2013, the IPython Development Team.
6 # Copyright (c) 2013, the IPython Development Team.
7 #
7 #
8 # Distributed under the terms of the Modified BSD License.
8 # Distributed under the terms of the Modified BSD License.
9 #
9 #
10 # The full license is in the file COPYING.txt, distributed with this software.
10 # The full license is in the file COPYING.txt, distributed with this software.
11 #-----------------------------------------------------------------------------
11 #-----------------------------------------------------------------------------
12
12
13 #-----------------------------------------------------------------------------
13 #-----------------------------------------------------------------------------
14 # Imports
14 # Imports
15 #-----------------------------------------------------------------------------
15 #-----------------------------------------------------------------------------
16
16
17 from .base import ExportersTestsBase
17 from .base import ExportersTestsBase
18 from ..fullhtml import FullHTMLExporter
18 from ..fullhtml import FullHTMLExporter
19 from IPython.testing.decorators import onlyif_cmds_exist
19
20
20 #-----------------------------------------------------------------------------
21 #-----------------------------------------------------------------------------
21 # Class
22 # Class
22 #-----------------------------------------------------------------------------
23 #-----------------------------------------------------------------------------
23
24
24 class TestFullHTMLExporter(ExportersTestsBase):
25 class TestFullHTMLExporter(ExportersTestsBase):
25 """Contains test functions for fullhtml.py"""
26 """Contains test functions for fullhtml.py"""
26
27
27 def test_constructor(self):
28 def test_constructor(self):
28 """
29 """
29 Can a FullHTMLExporter be constructed?
30 Can a FullHTMLExporter be constructed?
30 """
31 """
31 FullHTMLExporter()
32 FullHTMLExporter()
32
33
33
34 @onlyif_cmds_exist('pandoc')
34 def test_export(self):
35 def test_export(self):
35 """
36 """
36 Can a FullHTMLExporter export something?
37 Can a FullHTMLExporter export something?
37 """
38 """
38 (output, resources) = FullHTMLExporter().from_filename(self._get_notebook())
39 (output, resources) = FullHTMLExporter().from_filename(self._get_notebook())
39 assert len(output) > 0 No newline at end of file
40 assert len(output) > 0
@@ -1,39 +1,41 b''
1 """
1 """
2 Module with tests for latex.py
2 Module with tests for latex.py
3 """
3 """
4
4
5 #-----------------------------------------------------------------------------
5 #-----------------------------------------------------------------------------
6 # Copyright (c) 2013, the IPython Development Team.
6 # Copyright (c) 2013, the IPython Development Team.
7 #
7 #
8 # Distributed under the terms of the Modified BSD License.
8 # Distributed under the terms of the Modified BSD License.
9 #
9 #
10 # The full license is in the file COPYING.txt, distributed with this software.
10 # The full license is in the file COPYING.txt, distributed with this software.
11 #-----------------------------------------------------------------------------
11 #-----------------------------------------------------------------------------
12
12
13 #-----------------------------------------------------------------------------
13 #-----------------------------------------------------------------------------
14 # Imports
14 # Imports
15 #-----------------------------------------------------------------------------
15 #-----------------------------------------------------------------------------
16
16
17 from .base import ExportersTestsBase
17 from .base import ExportersTestsBase
18 from ..latex import LatexExporter
18 from ..latex import LatexExporter
19 from IPython.testing.decorators import onlyif_cmds_exist
19
20
20 #-----------------------------------------------------------------------------
21 #-----------------------------------------------------------------------------
21 # Class
22 # Class
22 #-----------------------------------------------------------------------------
23 #-----------------------------------------------------------------------------
23
24
24 class TestLatexExporter(ExportersTestsBase):
25 class TestLatexExporter(ExportersTestsBase):
25 """Contains test functions for latex.py"""
26 """Contains test functions for latex.py"""
26
27
27 def test_constructor(self):
28 def test_constructor(self):
28 """
29 """
29 Can a LatexExporter be constructed?
30 Can a LatexExporter be constructed?
30 """
31 """
31 LatexExporter()
32 LatexExporter()
32
33
33
34
35 @onlyif_cmds_exist('pandoc')
34 def test_export(self):
36 def test_export(self):
35 """
37 """
36 Can a LatexExporter export something?
38 Can a LatexExporter export something?
37 """
39 """
38 (output, resources) = LatexExporter().from_filename(self._get_notebook())
40 (output, resources) = LatexExporter().from_filename(self._get_notebook())
39 assert len(output) > 0 No newline at end of file
41 assert len(output) > 0
@@ -1,39 +1,41 b''
1 """
1 """
2 Module with tests for reveal.py
2 Module with tests for reveal.py
3 """
3 """
4
4
5 #-----------------------------------------------------------------------------
5 #-----------------------------------------------------------------------------
6 # Copyright (c) 2013, the IPython Development Team.
6 # Copyright (c) 2013, the IPython Development Team.
7 #
7 #
8 # Distributed under the terms of the Modified BSD License.
8 # Distributed under the terms of the Modified BSD License.
9 #
9 #
10 # The full license is in the file COPYING.txt, distributed with this software.
10 # The full license is in the file COPYING.txt, distributed with this software.
11 #-----------------------------------------------------------------------------
11 #-----------------------------------------------------------------------------
12
12
13 #-----------------------------------------------------------------------------
13 #-----------------------------------------------------------------------------
14 # Imports
14 # Imports
15 #-----------------------------------------------------------------------------
15 #-----------------------------------------------------------------------------
16
16
17 from .base import ExportersTestsBase
17 from .base import ExportersTestsBase
18 from ..reveal import RevealExporter
18 from ..reveal import RevealExporter
19 from IPython.testing.decorators import onlyif_cmds_exist
19
20
20 #-----------------------------------------------------------------------------
21 #-----------------------------------------------------------------------------
21 # Class
22 # Class
22 #-----------------------------------------------------------------------------
23 #-----------------------------------------------------------------------------
23
24
24 class TestRevealExporter(ExportersTestsBase):
25 class TestRevealExporter(ExportersTestsBase):
25 """Contains test functions for reveal.py"""
26 """Contains test functions for reveal.py"""
26
27
27 def test_constructor(self):
28 def test_constructor(self):
28 """
29 """
29 Can a RevealExporter be constructed?
30 Can a RevealExporter be constructed?
30 """
31 """
31 RevealExporter()
32 RevealExporter()
32
33
33
34
35 @onlyif_cmds_exist('pandoc')
34 def test_export(self):
36 def test_export(self):
35 """
37 """
36 Can a RevealExporter export something?
38 Can a RevealExporter export something?
37 """
39 """
38 (output, resources) = RevealExporter().from_filename(self._get_notebook())
40 (output, resources) = RevealExporter().from_filename(self._get_notebook())
39 assert len(output) > 0 No newline at end of file
41 assert len(output) > 0
@@ -1,39 +1,41 b''
1 """
1 """
2 Module with tests for rst.py
2 Module with tests for rst.py
3 """
3 """
4
4
5 #-----------------------------------------------------------------------------
5 #-----------------------------------------------------------------------------
6 # Copyright (c) 2013, the IPython Development Team.
6 # Copyright (c) 2013, the IPython Development Team.
7 #
7 #
8 # Distributed under the terms of the Modified BSD License.
8 # Distributed under the terms of the Modified BSD License.
9 #
9 #
10 # The full license is in the file COPYING.txt, distributed with this software.
10 # The full license is in the file COPYING.txt, distributed with this software.
11 #-----------------------------------------------------------------------------
11 #-----------------------------------------------------------------------------
12
12
13 #-----------------------------------------------------------------------------
13 #-----------------------------------------------------------------------------
14 # Imports
14 # Imports
15 #-----------------------------------------------------------------------------
15 #-----------------------------------------------------------------------------
16
16
17 from .base import ExportersTestsBase
17 from .base import ExportersTestsBase
18 from ..rst import RSTExporter
18 from ..rst import RSTExporter
19 from IPython.testing.decorators import onlyif_cmds_exist
19
20
20 #-----------------------------------------------------------------------------
21 #-----------------------------------------------------------------------------
21 # Class
22 # Class
22 #-----------------------------------------------------------------------------
23 #-----------------------------------------------------------------------------
23
24
24 class TestRSTExporter(ExportersTestsBase):
25 class TestRSTExporter(ExportersTestsBase):
25 """Contains test functions for rst.py"""
26 """Contains test functions for rst.py"""
26
27
27 def test_constructor(self):
28 def test_constructor(self):
28 """
29 """
29 Can a RSTExporter be constructed?
30 Can a RSTExporter be constructed?
30 """
31 """
31 RSTExporter()
32 RSTExporter()
32
33
33
34
35 @onlyif_cmds_exist('pandoc')
34 def test_export(self):
36 def test_export(self):
35 """
37 """
36 Can a RSTExporter export something?
38 Can a RSTExporter export something?
37 """
39 """
38 (output, resources) = RSTExporter().from_filename(self._get_notebook())
40 (output, resources) = RSTExporter().from_filename(self._get_notebook())
39 assert len(output) > 0 No newline at end of file
41 assert len(output) > 0
@@ -1,39 +1,41 b''
1 """
1 """
2 Module with tests for sphinx_howto.py
2 Module with tests for sphinx_howto.py
3 """
3 """
4
4
5 #-----------------------------------------------------------------------------
5 #-----------------------------------------------------------------------------
6 # Copyright (c) 2013, the IPython Development Team.
6 # Copyright (c) 2013, the IPython Development Team.
7 #
7 #
8 # Distributed under the terms of the Modified BSD License.
8 # Distributed under the terms of the Modified BSD License.
9 #
9 #
10 # The full license is in the file COPYING.txt, distributed with this software.
10 # The full license is in the file COPYING.txt, distributed with this software.
11 #-----------------------------------------------------------------------------
11 #-----------------------------------------------------------------------------
12
12
13 #-----------------------------------------------------------------------------
13 #-----------------------------------------------------------------------------
14 # Imports
14 # Imports
15 #-----------------------------------------------------------------------------
15 #-----------------------------------------------------------------------------
16
16
17 from .base import ExportersTestsBase
17 from .base import ExportersTestsBase
18 from ..sphinx_howto import SphinxHowtoExporter
18 from ..sphinx_howto import SphinxHowtoExporter
19 from IPython.testing.decorators import onlyif_cmds_exist
19
20
20 #-----------------------------------------------------------------------------
21 #-----------------------------------------------------------------------------
21 # Class
22 # Class
22 #-----------------------------------------------------------------------------
23 #-----------------------------------------------------------------------------
23
24
24 class TestSphinxHowtoExporter(ExportersTestsBase):
25 class TestSphinxHowtoExporter(ExportersTestsBase):
25 """Contains test functions for sphinx_howto.py"""
26 """Contains test functions for sphinx_howto.py"""
26
27
27 def test_constructor(self):
28 def test_constructor(self):
28 """
29 """
29 Can a SphinxHowtoExporter be constructed?
30 Can a SphinxHowtoExporter be constructed?
30 """
31 """
31 SphinxHowtoExporter()
32 SphinxHowtoExporter()
32
33
33
34
35 @onlyif_cmds_exist('pandoc')
34 def test_export(self):
36 def test_export(self):
35 """
37 """
36 Can a SphinxHowtoExporter export something?
38 Can a SphinxHowtoExporter export something?
37 """
39 """
38 (output, resources) = SphinxHowtoExporter().from_filename(self._get_notebook())
40 (output, resources) = SphinxHowtoExporter().from_filename(self._get_notebook())
39 assert len(output) > 0 No newline at end of file
41 assert len(output) > 0
@@ -1,39 +1,41 b''
1 """
1 """
2 Module with tests for sphinx_manual.py
2 Module with tests for sphinx_manual.py
3 """
3 """
4
4
5 #-----------------------------------------------------------------------------
5 #-----------------------------------------------------------------------------
6 # Copyright (c) 2013, the IPython Development Team.
6 # Copyright (c) 2013, the IPython Development Team.
7 #
7 #
8 # Distributed under the terms of the Modified BSD License.
8 # Distributed under the terms of the Modified BSD License.
9 #
9 #
10 # The full license is in the file COPYING.txt, distributed with this software.
10 # The full license is in the file COPYING.txt, distributed with this software.
11 #-----------------------------------------------------------------------------
11 #-----------------------------------------------------------------------------
12
12
13 #-----------------------------------------------------------------------------
13 #-----------------------------------------------------------------------------
14 # Imports
14 # Imports
15 #-----------------------------------------------------------------------------
15 #-----------------------------------------------------------------------------
16
16
17 from .base import ExportersTestsBase
17 from .base import ExportersTestsBase
18 from ..sphinx_manual import SphinxManualExporter
18 from ..sphinx_manual import SphinxManualExporter
19 from IPython.testing.decorators import onlyif_cmds_exist
19
20
20 #-----------------------------------------------------------------------------
21 #-----------------------------------------------------------------------------
21 # Class
22 # Class
22 #-----------------------------------------------------------------------------
23 #-----------------------------------------------------------------------------
23
24
24 class TestSphinxManualExporter(ExportersTestsBase):
25 class TestSphinxManualExporter(ExportersTestsBase):
25 """Contains test functions for sphinx_manual.py"""
26 """Contains test functions for sphinx_manual.py"""
26
27
27 def test_constructor(self):
28 def test_constructor(self):
28 """
29 """
29 Can a SphinxManualExporter be constructed?
30 Can a SphinxManualExporter be constructed?
30 """
31 """
31 SphinxManualExporter()
32 SphinxManualExporter()
32
33
33
34
35 @onlyif_cmds_exist('pandoc')
34 def test_export(self):
36 def test_export(self):
35 """
37 """
36 Can a SphinxManualExporter export something?
38 Can a SphinxManualExporter export something?
37 """
39 """
38 (output, resources) = SphinxManualExporter().from_filename(self._get_notebook())
40 (output, resources) = SphinxManualExporter().from_filename(self._get_notebook())
39 assert len(output) > 0 No newline at end of file
41 assert len(output) > 0
General Comments 0
You need to be logged in to leave comments. Login now