##// END OF EJS Templates
IPython.terminal.console -> jupyter_console
IPython.terminal.console -> jupyter_console

File last commit:

r20734:d5e6ad2e
r20871:197d61cc
Show More
test_slides.py
36 lines | 970 B | text/x-python | PythonLexer
MinRK
test raw cell inclusion based on raw_format metadata
r13665 """Tests for SlidesExporter"""
Jonathan Frederic
HTML-Slides -> Slides-Reveal
r11744
Min RK
remove obsolete `onlyif_any_cmd_exists` on nbconvert tests...
r20734 # Copyright (c) IPython Development Team.
Jonathan Frederic
HTML-Slides -> Slides-Reveal
r11744 # Distributed under the terms of the Modified BSD License.
from .base import ExportersTestsBase
from ..slides import SlidesExporter
class TestSlidesExporter(ExportersTestsBase):
MinRK
test raw cell inclusion based on raw_format metadata
r13665 """Tests for SlidesExporter"""
exporter_class = SlidesExporter
should_include_raw = ['html']
Jonathan Frederic
HTML-Slides -> Slides-Reveal
r11744
def test_constructor(self):
"""
Can a SlidesExporter be constructed?
"""
SlidesExporter()
def test_export(self):
"""
Can a SlidesExporter export something?
"""
(output, resources) = SlidesExporter().from_filename(self._get_notebook())
assert len(output) > 0
def test_export_reveal(self):
"""
Jonathan Frederic
flavor=template
r11745 Can a SlidesExporter export using the 'reveal' template?
Jonathan Frederic
HTML-Slides -> Slides-Reveal
r11744 """
Thomas Kluyver
Fix tests to use full template names
r13926 (output, resources) = SlidesExporter(template_file='slides_reveal').from_filename(self._get_notebook())
Jonathan Frederic
HTML-Slides -> Slides-Reveal
r11744 assert len(output) > 0