Show More
@@ -1,3 +1,4 b'' | |||
|
1 | # -*- coding: utf-8 -*- | |
|
1 | 2 | """Test NbConvertApp""" |
|
2 | 3 | |
|
3 | 4 | #----------------------------------------------------------------------------- |
@@ -183,3 +184,35 b' class TestNbConvertApp(TestsBase):' | |||
|
183 | 184 | self.call('nbconvert --log-level 0 --config="override.py"') |
|
184 | 185 | assert not os.path.isfile('notebook1.py') |
|
185 | 186 | assert os.path.isfile('notebook2.py') |
|
187 | ||
|
188 | def test_accents_in_filename(self): | |
|
189 | """ | |
|
190 | Can notebook names include accents? | |
|
191 | """ | |
|
192 | with self.create_temp_cwd(['nb*.ipynb']): | |
|
193 | self.call('nbconvert --log-level 0 --to python nb1_*') | |
|
194 | assert os.path.isfile(u'nb1_análisis.py') | |
|
195 | ||
|
196 | @dec.onlyif_cmds_exist('pandoc') | |
|
197 | def test_accents_in_command_line(self): | |
|
198 | """ | |
|
199 | Are accents allowed in arguments of command line? | |
|
200 | """ | |
|
201 | with self.create_temp_cwd(['nb*.ipynb']): | |
|
202 | self.call('nbconvert --to latex nb1_* ' | |
|
203 | '--SphinxTransform.author="análisis"') | |
|
204 | assert os.path.isfile(u'nb1_análisis.tex') | |
|
205 | ||
|
206 | @dec.onlyif_cmds_exist('pdflatex') | |
|
207 | @dec.onlyif_cmds_exist('pandoc') | |
|
208 | def test_filename_spaces(self): | |
|
209 | """ | |
|
210 | Generate PDFs if notebooks have an accent in their name? | |
|
211 | """ | |
|
212 | with self.create_temp_cwd(['nb*.ipynb']): | |
|
213 | o,e = self.call('nbconvert --log-level 0 --to latex ' | |
|
214 | '"nb1_*" --post PDF ' | |
|
215 | '--PDFPostProcessor.verbose=True') | |
|
216 | assert os.path.isfile('nb1_análisis.tex') | |
|
217 | assert os.path.isdir('nb1_análisis_files') | |
|
218 | assert os.path.isfile('nb1_análisis.pdf') |
|
1 | NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now