diff --git a/IPython/nbconvert/exporters/tests/test_basichtml.py b/IPython/nbconvert/exporters/tests/test_basichtml.py index c7215e5..a02d713 100644 --- a/IPython/nbconvert/exporters/tests/test_basichtml.py +++ b/IPython/nbconvert/exporters/tests/test_basichtml.py @@ -16,6 +16,7 @@ Module with tests for basichtml.py from .base import ExportersTestsBase from ..basichtml import BasicHTMLExporter +from IPython.testing.decorators import onlyif_cmds_exist #----------------------------------------------------------------------------- # Class @@ -30,10 +31,10 @@ class TestBasicHTMLExporter(ExportersTestsBase): """ BasicHTMLExporter() - + @onlyif_cmds_exist('pandoc') def test_export(self): """ Can a BasicHTMLExporter export something? """ (output, resources) = BasicHTMLExporter().from_filename(self._get_notebook()) - assert len(output) > 0 \ No newline at end of file + assert len(output) > 0 diff --git a/IPython/nbconvert/exporters/tests/test_fullhtml.py b/IPython/nbconvert/exporters/tests/test_fullhtml.py index 6342198..88a2988 100644 --- a/IPython/nbconvert/exporters/tests/test_fullhtml.py +++ b/IPython/nbconvert/exporters/tests/test_fullhtml.py @@ -16,6 +16,7 @@ Module with tests for fullhtml.py from .base import ExportersTestsBase from ..fullhtml import FullHTMLExporter +from IPython.testing.decorators import onlyif_cmds_exist #----------------------------------------------------------------------------- # Class @@ -30,10 +31,10 @@ class TestFullHTMLExporter(ExportersTestsBase): """ FullHTMLExporter() - + @onlyif_cmds_exist('pandoc') def test_export(self): """ Can a FullHTMLExporter export something? """ (output, resources) = FullHTMLExporter().from_filename(self._get_notebook()) - assert len(output) > 0 \ No newline at end of file + assert len(output) > 0 diff --git a/IPython/nbconvert/exporters/tests/test_latex.py b/IPython/nbconvert/exporters/tests/test_latex.py index 52b3726..e9f4061 100644 --- a/IPython/nbconvert/exporters/tests/test_latex.py +++ b/IPython/nbconvert/exporters/tests/test_latex.py @@ -16,6 +16,7 @@ Module with tests for latex.py from .base import ExportersTestsBase from ..latex import LatexExporter +from IPython.testing.decorators import onlyif_cmds_exist #----------------------------------------------------------------------------- # Class @@ -31,9 +32,10 @@ class TestLatexExporter(ExportersTestsBase): LatexExporter() + @onlyif_cmds_exist('pandoc') def test_export(self): """ Can a LatexExporter export something? """ (output, resources) = LatexExporter().from_filename(self._get_notebook()) - assert len(output) > 0 \ No newline at end of file + assert len(output) > 0 diff --git a/IPython/nbconvert/exporters/tests/test_reveal.py b/IPython/nbconvert/exporters/tests/test_reveal.py index daa40c8..822e90c 100644 --- a/IPython/nbconvert/exporters/tests/test_reveal.py +++ b/IPython/nbconvert/exporters/tests/test_reveal.py @@ -16,6 +16,7 @@ Module with tests for reveal.py from .base import ExportersTestsBase from ..reveal import RevealExporter +from IPython.testing.decorators import onlyif_cmds_exist #----------------------------------------------------------------------------- # Class @@ -31,9 +32,10 @@ class TestRevealExporter(ExportersTestsBase): RevealExporter() + @onlyif_cmds_exist('pandoc') def test_export(self): """ Can a RevealExporter export something? """ (output, resources) = RevealExporter().from_filename(self._get_notebook()) - assert len(output) > 0 \ No newline at end of file + assert len(output) > 0 diff --git a/IPython/nbconvert/exporters/tests/test_rst.py b/IPython/nbconvert/exporters/tests/test_rst.py index 82e6f64..6634f7b 100644 --- a/IPython/nbconvert/exporters/tests/test_rst.py +++ b/IPython/nbconvert/exporters/tests/test_rst.py @@ -16,6 +16,7 @@ Module with tests for rst.py from .base import ExportersTestsBase from ..rst import RSTExporter +from IPython.testing.decorators import onlyif_cmds_exist #----------------------------------------------------------------------------- # Class @@ -31,9 +32,10 @@ class TestRSTExporter(ExportersTestsBase): RSTExporter() + @onlyif_cmds_exist('pandoc') def test_export(self): """ Can a RSTExporter export something? """ (output, resources) = RSTExporter().from_filename(self._get_notebook()) - assert len(output) > 0 \ No newline at end of file + assert len(output) > 0 diff --git a/IPython/nbconvert/exporters/tests/test_sphinx_howto.py b/IPython/nbconvert/exporters/tests/test_sphinx_howto.py index 0f617bf..5004155 100644 --- a/IPython/nbconvert/exporters/tests/test_sphinx_howto.py +++ b/IPython/nbconvert/exporters/tests/test_sphinx_howto.py @@ -16,6 +16,7 @@ Module with tests for sphinx_howto.py from .base import ExportersTestsBase from ..sphinx_howto import SphinxHowtoExporter +from IPython.testing.decorators import onlyif_cmds_exist #----------------------------------------------------------------------------- # Class @@ -31,9 +32,10 @@ class TestSphinxHowtoExporter(ExportersTestsBase): SphinxHowtoExporter() + @onlyif_cmds_exist('pandoc') def test_export(self): """ Can a SphinxHowtoExporter export something? """ (output, resources) = SphinxHowtoExporter().from_filename(self._get_notebook()) - assert len(output) > 0 \ No newline at end of file + assert len(output) > 0 diff --git a/IPython/nbconvert/exporters/tests/test_sphinx_manual.py b/IPython/nbconvert/exporters/tests/test_sphinx_manual.py index dbc9475..3f78b4c 100644 --- a/IPython/nbconvert/exporters/tests/test_sphinx_manual.py +++ b/IPython/nbconvert/exporters/tests/test_sphinx_manual.py @@ -16,6 +16,7 @@ Module with tests for sphinx_manual.py from .base import ExportersTestsBase from ..sphinx_manual import SphinxManualExporter +from IPython.testing.decorators import onlyif_cmds_exist #----------------------------------------------------------------------------- # Class @@ -31,9 +32,10 @@ class TestSphinxManualExporter(ExportersTestsBase): SphinxManualExporter() + @onlyif_cmds_exist('pandoc') def test_export(self): """ Can a SphinxManualExporter export something? """ (output, resources) = SphinxManualExporter().from_filename(self._get_notebook()) - assert len(output) > 0 \ No newline at end of file + assert len(output) > 0