##// END OF EJS Templates
skip tests that require pandoc
Paul Ivanov -
Show More
@@ -16,6 +16,7 b' Module with tests for basichtml.py'
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
@@ -30,10 +31,10 b' class TestBasicHTMLExporter(ExportersTestsBase):'
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
@@ -16,6 +16,7 b' Module with tests for fullhtml.py'
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
@@ -30,10 +31,10 b' class TestFullHTMLExporter(ExportersTestsBase):'
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
@@ -16,6 +16,7 b' Module with tests for latex.py'
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
@@ -31,9 +32,10 b' class TestLatexExporter(ExportersTestsBase):'
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
@@ -16,6 +16,7 b' Module with tests for reveal.py'
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
@@ -31,9 +32,10 b' class TestRevealExporter(ExportersTestsBase):'
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
@@ -16,6 +16,7 b' Module with tests for rst.py'
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
@@ -31,9 +32,10 b' class TestRSTExporter(ExportersTestsBase):'
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
@@ -16,6 +16,7 b' Module with tests for sphinx_howto.py'
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
@@ -31,9 +32,10 b' class TestSphinxHowtoExporter(ExportersTestsBase):'
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
@@ -16,6 +16,7 b' Module with tests for sphinx_manual.py'
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
@@ -31,9 +32,10 b' class TestSphinxManualExporter(ExportersTestsBase):'
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