##// END OF EJS Templates
Backport PR #8000: Fix rename issues in dashboard...
Backport PR #8000: Fix rename issues in dashboard - Do not display the full path of the selected item in the text box (**warning** : this removes the possibility of moving a file/folder using the rename dialog. Maybe someone finds this helpful) - Adapt dialog for files and notebook. - Do not allow renaming a running notebook (currently, renaming a running notebook would result in duplication instead of renaming after the open notebook saves/autosaves using the old name)

File last commit:

r20734:d5e6ad2e
r20876:86af759b
Show More
test_slides.py
36 lines | 970 B | text/x-python | PythonLexer
"""Tests for SlidesExporter"""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
from .base import ExportersTestsBase
from ..slides import SlidesExporter
class TestSlidesExporter(ExportersTestsBase):
"""Tests for SlidesExporter"""
exporter_class = SlidesExporter
should_include_raw = ['html']
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):
"""
Can a SlidesExporter export using the 'reveal' template?
"""
(output, resources) = SlidesExporter(template_file='slides_reveal').from_filename(self._get_notebook())
assert len(output) > 0