Show More
@@ -1,19 +1,19 b'' | |||
|
1 | 1 | from nbconvert import ConverterRST |
|
2 | 2 | import nose.tools as nt |
|
3 | 3 | |
|
4 | 4 | import os |
|
5 | 5 | import glob |
|
6 | 6 | |
|
7 | 7 | def clean_dir(): |
|
8 | 8 | "Remove .rst files created during conversion" |
|
9 | map(os.remove, glob.glob("*.rst")) | |
|
10 | map(os.remove, glob.glob("*.png")) | |
|
9 | map(os.remove, glob.glob("./tests/*.rst")) | |
|
10 | map(os.remove, glob.glob("./tests/*.png")) | |
|
11 | 11 | |
|
12 | 12 | |
|
13 | 13 | @nt.with_setup(clean_dir, clean_dir) |
|
14 | 14 | def test_simple(): |
|
15 | 15 | fname = 'tests/test.ipynb' |
|
16 | 16 | c = ConverterRST(fname) |
|
17 | 17 | f = c.render() |
|
18 | 18 | nt.assert_true('rst' in f, 'changed file extension to rst') |
|
19 | 19 |
General Comments 0
You need to be logged in to leave comments.
Login now