Show More
@@ -210,3 +210,25 b' class TestNbConvertApp(TestsBase):' | |||
|
210 | 210 | self.create_empty_notebook(u'empty.ipynb') |
|
211 | 211 | self.call('nbconvert empty --to html --NbConvertApp.writer_class=\'hello.HelloWriter\'') |
|
212 | 212 | assert os.path.isfile(u'hello.txt') |
|
213 | ||
|
214 | def test_output_suffix(self): | |
|
215 | """ | |
|
216 | Verify that the output suffix is applied | |
|
217 | """ | |
|
218 | with self.create_temp_cwd(): | |
|
219 | self.create_empty_notebook('empty.ipynb') | |
|
220 | self.call('nbconvert empty.ipynb --to notebook') | |
|
221 | assert os.path.isfile('empty.nbconvert.ipynb') | |
|
222 | ||
|
223 | def test_no_output_suffix(self): | |
|
224 | """ | |
|
225 | Verify that the output suffix is not applied | |
|
226 | """ | |
|
227 | with self.create_temp_cwd(): | |
|
228 | self.create_empty_notebook('empty.ipynb') | |
|
229 | os.mkdir('output') | |
|
230 | self.call( | |
|
231 | 'nbconvert empty.ipynb --to notebook ' | |
|
232 | '--FilesWriter.build_directory=output ' | |
|
233 | '--no-output-suffix') | |
|
234 | assert os.path.isfile('output/empty.ipynb') |
General Comments 0
You need to be logged in to leave comments.
Login now