##// END OF EJS Templates
inconsequential cleanup pass on test_nbconvertapp
MinRK -
Show More
@@ -21,12 +21,6 b' from .base import TestsBase'
21 import IPython.testing.tools as tt
21 import IPython.testing.tools as tt
22 from IPython.testing import decorators as dec
22 from IPython.testing import decorators as dec
23
23
24
25 #-----------------------------------------------------------------------------
26 # Constants
27 #-----------------------------------------------------------------------------
28
29
30 #-----------------------------------------------------------------------------
24 #-----------------------------------------------------------------------------
31 # Classes and functions
25 # Classes and functions
32 #-----------------------------------------------------------------------------
26 #-----------------------------------------------------------------------------
@@ -85,7 +79,7 b' class TestNbConvertApp(TestsBase):'
85 """
79 """
86 with self.create_temp_cwd(['notebook2.ipynb']):
80 with self.create_temp_cwd(['notebook2.ipynb']):
87 os.rename('notebook2.ipynb', 'notebook with spaces.ipynb')
81 os.rename('notebook2.ipynb', 'notebook with spaces.ipynb')
88 o,e = self.call('nbconvert --log-level 0 --to latex '
82 self.call('nbconvert --log-level 0 --to latex '
89 '"notebook with spaces" --post PDF '
83 '"notebook with spaces" --post PDF '
90 '--PDFPostProcessor.verbose=True')
84 '--PDFPostProcessor.verbose=True')
91 assert os.path.isfile('notebook with spaces.tex')
85 assert os.path.isfile('notebook with spaces.tex')
@@ -194,15 +188,14 b' class TestNbConvertApp(TestsBase):'
194 self.call('nbconvert --log-level 0 --to python nb1_*')
188 self.call('nbconvert --log-level 0 --to python nb1_*')
195 assert os.path.isfile(u'nb1_análisis.py')
189 assert os.path.isfile(u'nb1_análisis.py')
196
190
197 @dec.onlyif_cmds_exist('pdflatex')
191 @dec.onlyif_cmds_exist('pdflatex', 'pandoc')
198 @dec.onlyif_cmds_exist('pandoc')
192 def test_filename_accent_pdf(self):
199 def test_filename_accent(self):
200 """
193 """
201 Generate PDFs if notebooks have an accent in their name?
194 Generate PDFs if notebooks have an accent in their name?
202 """
195 """
203 with self.create_temp_cwd():
196 with self.create_temp_cwd():
204 self.create_empty_notebook(u'nb1_análisis.ipynb')
197 self.create_empty_notebook(u'nb1_análisis.ipynb')
205 o,e = self.call('nbconvert --log-level 0 --to latex '
198 self.call('nbconvert --log-level 0 --to latex '
206 '"nb1_*" --post PDF '
199 '"nb1_*" --post PDF '
207 '--PDFPostProcessor.verbose=True')
200 '--PDFPostProcessor.verbose=True')
208 assert os.path.isfile(u'nb1_análisis.tex')
201 assert os.path.isfile(u'nb1_análisis.tex')
General Comments 0
You need to be logged in to leave comments. Login now