Show More
@@ -14,7 +14,7 b'' | |||
|
14 | 14 | |
|
15 | 15 | import os |
|
16 | 16 | |
|
17 |
from IPython.testing.decorators import onlyif_cmd |
|
|
17 | from IPython.testing.decorators import onlyif_any_cmd_exists | |
|
18 | 18 | |
|
19 | 19 | from ...tests.base import TestsBase |
|
20 | 20 | |
@@ -39,7 +39,7 b' class ExportersTestsBase(TestsBase):' | |||
|
39 | 39 | def _get_notebook(self, nb_name='notebook2.ipynb'): |
|
40 | 40 | return os.path.join(self._get_files_path(), nb_name) |
|
41 | 41 | |
|
42 |
@onlyif_cmd |
|
|
42 | @onlyif_any_cmd_exists('nodejs', 'node', 'pandoc') | |
|
43 | 43 | def test_raw_cell_inclusion(self): |
|
44 | 44 | """test raw cell inclusion based on raw_mimetype metadata""" |
|
45 | 45 | if self.should_include_raw is None: |
@@ -14,7 +14,7 b'' | |||
|
14 | 14 | |
|
15 | 15 | from .base import ExportersTestsBase |
|
16 | 16 | from ..html import HTMLExporter |
|
17 |
from IPython.testing.decorators import onlyif_cmd |
|
|
17 | from IPython.testing.decorators import onlyif_any_cmd_exists | |
|
18 | 18 | |
|
19 | 19 | #----------------------------------------------------------------------------- |
|
20 | 20 | # Class |
@@ -33,7 +33,7 b' class TestHTMLExporter(ExportersTestsBase):' | |||
|
33 | 33 | HTMLExporter() |
|
34 | 34 | |
|
35 | 35 | |
|
36 |
@onlyif_cmd |
|
|
36 | @onlyif_any_cmd_exists('nodejs', 'node', 'pandoc') | |
|
37 | 37 | def test_export(self): |
|
38 | 38 | """ |
|
39 | 39 | Can a HTMLExporter export something? |
@@ -42,7 +42,7 b' class TestHTMLExporter(ExportersTestsBase):' | |||
|
42 | 42 | assert len(output) > 0 |
|
43 | 43 | |
|
44 | 44 | |
|
45 |
@onlyif_cmd |
|
|
45 | @onlyif_any_cmd_exists('nodejs', 'node', 'pandoc') | |
|
46 | 46 | def test_export_basic(self): |
|
47 | 47 | """ |
|
48 | 48 | Can a HTMLExporter export using the 'basic' template? |
@@ -51,7 +51,7 b' class TestHTMLExporter(ExportersTestsBase):' | |||
|
51 | 51 | assert len(output) > 0 |
|
52 | 52 | |
|
53 | 53 | |
|
54 |
@onlyif_cmd |
|
|
54 | @onlyif_any_cmd_exists('nodejs', 'node', 'pandoc') | |
|
55 | 55 | def test_export_full(self): |
|
56 | 56 | """ |
|
57 | 57 | Can a HTMLExporter export using the 'full' template? |
@@ -14,7 +14,7 b'' | |||
|
14 | 14 | |
|
15 | 15 | from .base import ExportersTestsBase |
|
16 | 16 | from ..slides import SlidesExporter |
|
17 |
from IPython.testing.decorators import onlyif_cmd |
|
|
17 | from IPython.testing.decorators import onlyif_any_cmd_exists | |
|
18 | 18 | |
|
19 | 19 | #----------------------------------------------------------------------------- |
|
20 | 20 | # Class |
@@ -33,7 +33,7 b' class TestSlidesExporter(ExportersTestsBase):' | |||
|
33 | 33 | SlidesExporter() |
|
34 | 34 | |
|
35 | 35 | |
|
36 |
@onlyif_cmd |
|
|
36 | @onlyif_any_cmd_exists('nodejs', 'node', 'pandoc') | |
|
37 | 37 | def test_export(self): |
|
38 | 38 | """ |
|
39 | 39 | Can a SlidesExporter export something? |
@@ -42,7 +42,7 b' class TestSlidesExporter(ExportersTestsBase):' | |||
|
42 | 42 | assert len(output) > 0 |
|
43 | 43 | |
|
44 | 44 | |
|
45 |
@onlyif_cmd |
|
|
45 | @onlyif_any_cmd_exists('nodejs', 'node', 'pandoc') | |
|
46 | 46 | def test_export_reveal(self): |
|
47 | 47 | """ |
|
48 | 48 | Can a SlidesExporter export using the 'reveal' template? |
General Comments 0
You need to be logged in to leave comments.
Login now