##// END OF EJS Templates
Fix tests to use full template names
Thomas Kluyver -
Show More
@@ -47,7 +47,7 b' class TestHTMLExporter(ExportersTestsBase):'
47 47 """
48 48 Can a HTMLExporter export using the 'basic' template?
49 49 """
50 (output, resources) = HTMLExporter(template_file='basic').from_filename(self._get_notebook())
50 (output, resources) = HTMLExporter(template_file='html_basic').from_filename(self._get_notebook())
51 51 assert len(output) > 0
52 52
53 53
@@ -56,6 +56,6 b' class TestHTMLExporter(ExportersTestsBase):'
56 56 """
57 57 Can a HTMLExporter export using the 'full' template?
58 58 """
59 (output, resources) = HTMLExporter(template_file='full').from_filename(self._get_notebook())
59 (output, resources) = HTMLExporter(template_file='html_full').from_filename(self._get_notebook())
60 60 assert len(output) > 0
61 61
@@ -47,5 +47,5 b' class TestSlidesExporter(ExportersTestsBase):'
47 47 """
48 48 Can a SlidesExporter export using the 'reveal' template?
49 49 """
50 (output, resources) = SlidesExporter(template_file='reveal').from_filename(self._get_notebook())
50 (output, resources) = SlidesExporter(template_file='slides_reveal').from_filename(self._get_notebook())
51 51 assert len(output) > 0
@@ -123,7 +123,7 b' class TestNbConvertApp(TestsBase):'
123 123 """Is embedded png data well formed in HTML?"""
124 124 with self.create_temp_cwd(['notebook2.ipynb']):
125 125 self.call('nbconvert --log-level 0 --to HTML '
126 'notebook2.ipynb --template full')
126 'notebook2.ipynb --template html_full')
127 127 assert os.path.isfile('notebook2.html')
128 128 with open('notebook2.html') as f:
129 129 assert "data:image/png;base64,b'" not in f.read()
@@ -135,7 +135,7 b' class TestNbConvertApp(TestsBase):'
135 135 """
136 136 with self.create_temp_cwd(['notebook2.ipynb']):
137 137 self.call('nbconvert --log-level 0 --to slides '
138 'notebook2.ipynb --template reveal')
138 'notebook2.ipynb --template slides_reveal')
139 139 assert os.path.isfile('notebook2.slides.html')
140 140 with open('notebook2.slides.html') as f:
141 141 assert '/reveal.css' in f.read()
General Comments 0
You need to be logged in to leave comments. Login now