Show More
@@ -53,8 +53,8 b' class TestNbConvertApp(TestsBase):' | |||||
53 | with self.create_temp_cwd(['notebook*.ipynb']): |
|
53 | with self.create_temp_cwd(['notebook*.ipynb']): | |
54 | assert not 'error' in self.call([IPYTHON, 'nbconvert', |
|
54 | assert not 'error' in self.call([IPYTHON, 'nbconvert', | |
55 | '--format="python"', '--notebooks=["*.ipynb"]']).lower() |
|
55 | '--format="python"', '--notebooks=["*.ipynb"]']).lower() | |
56 |
assert os.path.isfile( |
|
56 | assert os.path.isfile('notebook1.py') | |
57 |
assert os.path.isfile( |
|
57 | assert os.path.isfile('notebook2.py') | |
58 |
|
58 | |||
59 |
|
59 | |||
60 | def test_glob_subdir(self): |
|
60 | def test_glob_subdir(self): | |
@@ -65,8 +65,8 b' class TestNbConvertApp(TestsBase):' | |||||
65 | self.copy_files_to(['notebook*.ipynb'], 'subdir/') |
|
65 | self.copy_files_to(['notebook*.ipynb'], 'subdir/') | |
66 | assert not 'error' in self.call([IPYTHON, 'nbconvert', '--format="python"', |
|
66 | assert not 'error' in self.call([IPYTHON, 'nbconvert', '--format="python"', | |
67 | '--notebooks=["%s"]' % os.path.join('subdir', '*.ipynb')]).lower() |
|
67 | '--notebooks=["%s"]' % os.path.join('subdir', '*.ipynb')]).lower() | |
68 |
assert os.path.isfile( |
|
68 | assert os.path.isfile('notebook1.py') | |
69 |
assert os.path.isfile( |
|
69 | assert os.path.isfile('notebook2.py') | |
70 |
|
70 | |||
71 |
|
71 | |||
72 | def test_explicit(self): |
|
72 | def test_explicit(self): | |
@@ -76,8 +76,8 b' class TestNbConvertApp(TestsBase):' | |||||
76 | with self.create_temp_cwd(['notebook*.ipynb']): |
|
76 | with self.create_temp_cwd(['notebook*.ipynb']): | |
77 | assert not 'error' in self.call([IPYTHON, 'nbconvert', '--format="python"', |
|
77 | assert not 'error' in self.call([IPYTHON, 'nbconvert', '--format="python"', | |
78 | '--notebooks=["notebook2.ipynb"]']).lower() |
|
78 | '--notebooks=["notebook2.ipynb"]']).lower() | |
79 |
assert not os.path.isfile( |
|
79 | assert not os.path.isfile('notebook1.py') | |
80 |
assert os.path.isfile( |
|
80 | assert os.path.isfile('notebook2.py') | |
81 |
|
81 | |||
82 |
|
82 | |||
83 | def test_glob_explicit(self): |
|
83 | def test_glob_explicit(self): | |
@@ -87,8 +87,8 b' class TestNbConvertApp(TestsBase):' | |||||
87 | with self.create_temp_cwd(['notebook*.ipynb']): |
|
87 | with self.create_temp_cwd(['notebook*.ipynb']): | |
88 | assert not 'error' in self.call([IPYTHON, 'nbconvert', '--format="python"', |
|
88 | assert not 'error' in self.call([IPYTHON, 'nbconvert', '--format="python"', | |
89 | '--notebooks=["*.ipynb", "notebook1.ipynb", "notebook2.ipynb"]']).lower() |
|
89 | '--notebooks=["*.ipynb", "notebook1.ipynb", "notebook2.ipynb"]']).lower() | |
90 |
assert os.path.isfile( |
|
90 | assert os.path.isfile('notebook1.py') | |
91 |
assert os.path.isfile( |
|
91 | assert os.path.isfile('notebook2.py') | |
92 |
|
92 | |||
93 |
|
93 | |||
94 | def test_explicit_glob(self): |
|
94 | def test_explicit_glob(self): | |
@@ -98,8 +98,8 b' class TestNbConvertApp(TestsBase):' | |||||
98 | with self.create_temp_cwd(['notebook*.ipynb']): |
|
98 | with self.create_temp_cwd(['notebook*.ipynb']): | |
99 | assert not 'error' in self.call([IPYTHON, 'nbconvert', '--format="python"', |
|
99 | assert not 'error' in self.call([IPYTHON, 'nbconvert', '--format="python"', | |
100 | '--notebooks=["notebook1.ipynb", "notebook2.ipynb", "*.ipynb"]']).lower() |
|
100 | '--notebooks=["notebook1.ipynb", "notebook2.ipynb", "*.ipynb"]']).lower() | |
101 |
assert os.path.isfile( |
|
101 | assert os.path.isfile('notebook1.py') | |
102 |
assert os.path.isfile( |
|
102 | assert os.path.isfile('notebook2.py') | |
103 |
|
103 | |||
104 |
|
104 | |||
105 | def test_default_config(self): |
|
105 | def test_default_config(self): | |
@@ -108,8 +108,8 b' class TestNbConvertApp(TestsBase):' | |||||
108 | """ |
|
108 | """ | |
109 | with self.create_temp_cwd(['notebook*.ipynb', 'ipython_nbconvert_config.py']): |
|
109 | with self.create_temp_cwd(['notebook*.ipynb', 'ipython_nbconvert_config.py']): | |
110 | assert not 'error' in self.call([IPYTHON, 'nbconvert']).lower() |
|
110 | assert not 'error' in self.call([IPYTHON, 'nbconvert']).lower() | |
111 |
assert os.path.isfile( |
|
111 | assert os.path.isfile('notebook1.py') | |
112 |
assert not os.path.isfile( |
|
112 | assert not os.path.isfile('notebook2.py') | |
113 |
|
113 | |||
114 |
|
114 | |||
115 | def test_override_config(self): |
|
115 | def test_override_config(self): | |
@@ -119,5 +119,5 b' class TestNbConvertApp(TestsBase):' | |||||
119 | with self.create_temp_cwd(['notebook*.ipynb', 'ipython_nbconvert_config.py', |
|
119 | with self.create_temp_cwd(['notebook*.ipynb', 'ipython_nbconvert_config.py', | |
120 | 'override.py']): |
|
120 | 'override.py']): | |
121 | assert not 'error' in self.call([IPYTHON, 'nbconvert', '--config="override.py"']).lower() |
|
121 | assert not 'error' in self.call([IPYTHON, 'nbconvert', '--config="override.py"']).lower() | |
122 |
assert not os.path.isfile( |
|
122 | assert not os.path.isfile('notebook1.py') | |
123 |
assert os.path.isfile( |
|
123 | assert os.path.isfile('notebook2.py') |
General Comments 0
You need to be logged in to leave comments.
Login now