##// END OF EJS Templates
noteboook with spaces.ipynb test
Richard Everson -
Show More
@@ -14,6 +14,8 b' Contains tests for the nbconvertapp'
14 #-----------------------------------------------------------------------------
14 #-----------------------------------------------------------------------------
15
15
16 import os
16 import os
17 import glob
18
17 from .base import TestsBase
19 from .base import TestsBase
18
20
19 from IPython.testing import decorators as dec
21 from IPython.testing import decorators as dec
@@ -74,6 +76,18 b' class TestNbConvertApp(TestsBase):'
74 assert os.path.isfile('notebook2.py')
76 assert os.path.isfile('notebook2.py')
75
77
76
78
79 def test_filename_spaces(self):
80 """
81 Are spaces removed from filenames?
82 """
83 with self.create_temp_cwd(['notebook1.ipynb']):
84 os.rename('notebook1.ipynb', 'notebook with spaces.ipynb')
85 self.call('nbconvert --log-level=0 --to="latex" "notebook with spaces"')
86 assert os.path.isfile('notebook with spaces.tex')
87 assert os.path.isdir('notebook_with_spaces_files')
88 for f in glob.glob('notebook_with_spaces_files/*'):
89 assert r" \t\n" not in f
90
77 @dec.onlyif_cmds_exist('pdflatex')
91 @dec.onlyif_cmds_exist('pdflatex')
78 @dec.onlyif_cmds_exist('pandoc')
92 @dec.onlyif_cmds_exist('pandoc')
79 def test_post_processor(self):
93 def test_post_processor(self):
General Comments 0
You need to be logged in to leave comments. Login now