##// END OF EJS Templates
all nbconvert tests pass with pandoc
Paul Ivanov -
Show More
@@ -54,7 +54,7 b' class TestNbConvertApp(TestsBase):'
54 """
54 """
55 with self.create_temp_cwd(['notebook*.ipynb']):
55 with self.create_temp_cwd(['notebook*.ipynb']):
56 self.call(IPYTHON + ' nbconvert --to="python"'
56 self.call(IPYTHON + ' nbconvert --to="python"'
57 ' --notebooks=["*.ipynb"]')
57 ' --notebooks=*.ipynb')
58 assert os.path.isfile('notebook1.py')
58 assert os.path.isfile('notebook1.py')
59 assert os.path.isfile('notebook2.py')
59 assert os.path.isfile('notebook2.py')
60
60
@@ -65,8 +65,8 b' class TestNbConvertApp(TestsBase):'
65 """
65 """
66 with self.create_temp_cwd():
66 with self.create_temp_cwd():
67 self.copy_files_to(['notebook*.ipynb'], 'subdir/')
67 self.copy_files_to(['notebook*.ipynb'], 'subdir/')
68 self.call(IPYTHON + ' nbconvert --to="python"',
68 self.call(IPYTHON + ' nbconvert --to="python"'
69 ' --notebooks=["%s"]' % os.path.join('subdir', '*.ipynb'))
69 ' --notebooks=%s' % os.path.join('subdir', '*.ipynb'))
70 assert os.path.isfile('notebook1.py')
70 assert os.path.isfile('notebook1.py')
71 assert os.path.isfile('notebook2.py')
71 assert os.path.isfile('notebook2.py')
72
72
@@ -77,7 +77,7 b' class TestNbConvertApp(TestsBase):'
77 """
77 """
78 with self.create_temp_cwd(['notebook*.ipynb']):
78 with self.create_temp_cwd(['notebook*.ipynb']):
79 self.call(IPYTHON + ' nbconvert --to="python"'
79 self.call(IPYTHON + ' nbconvert --to="python"'
80 ' --notebooks=["notebook2.ipynb"]')
80 ' --notebooks=notebook2.ipynb')
81 assert not os.path.isfile('notebook1.py')
81 assert not os.path.isfile('notebook1.py')
82 assert os.path.isfile('notebook2.py')
82 assert os.path.isfile('notebook2.py')
83
83
@@ -101,7 +101,7 b' class TestNbConvertApp(TestsBase):'
101 """
101 """
102 with self.create_temp_cwd(['notebook2.ipynb']):
102 with self.create_temp_cwd(['notebook2.ipynb']):
103 self.call(IPYTHON + ' nbconvert --to=slides'
103 self.call(IPYTHON + ' nbconvert --to=slides'
104 ' --notebooks=["notebook2.ipynb"]'
104 ' --notebooks=notebook2.ipynb'
105 ' --template=reveal')
105 ' --template=reveal')
106 assert os.path.isfile('notebook2.slides.html')
106 assert os.path.isfile('notebook2.slides.html')
107 with open('notebook2.slides.html') as f:
107 with open('notebook2.slides.html') as f:
@@ -114,7 +114,7 b' class TestNbConvertApp(TestsBase):'
114 """
114 """
115 with self.create_temp_cwd(['notebook*.ipynb']):
115 with self.create_temp_cwd(['notebook*.ipynb']):
116 self.call(IPYTHON + ' nbconvert --to="python" --notebooks='
116 self.call(IPYTHON + ' nbconvert --to="python" --notebooks='
117 '["*.ipynb", "notebook1.ipynb", "notebook2.ipynb"]')
117 '*.ipynb,notebook1.ipynb,notebook2.ipynb')
118 assert os.path.isfile('notebook1.py')
118 assert os.path.isfile('notebook1.py')
119 assert os.path.isfile('notebook2.py')
119 assert os.path.isfile('notebook2.py')
120
120
@@ -125,7 +125,7 b' class TestNbConvertApp(TestsBase):'
125 """
125 """
126 with self.create_temp_cwd(['notebook*.ipynb']):
126 with self.create_temp_cwd(['notebook*.ipynb']):
127 self.call(IPYTHON + ' nbconvert --to="python" --notebooks='
127 self.call(IPYTHON + ' nbconvert --to="python" --notebooks='
128 '["notebook1.ipynb", "notebook2.ipynb", "*.ipynb"]')
128 'notebook1.ipynb,notebook2.ipynb,*.ipynb')
129 assert os.path.isfile('notebook1.py')
129 assert os.path.isfile('notebook1.py')
130 assert os.path.isfile('notebook2.py')
130 assert os.path.isfile('notebook2.py')
131
131
General Comments 0
You need to be logged in to leave comments. Login now