Show More
@@ -0,0 +1,8 b'' | |||||
|
1 | c = get_config() | |||
|
2 | ||||
|
3 | ||||
|
4 | c.ConverterTemplate.extract_figures=False | |||
|
5 | c.ConverterTemplate.template_file='null' | |||
|
6 | c.ConverterTemplate.tex_environement=True | |||
|
7 | ||||
|
8 | c.ExtractFigureTransformer.enabled = False |
@@ -16,12 +16,15 b' def test_evens():' | |||||
16 | test_profiles = [prof for prof in os.listdir('profile/test/') if prof.endswith('.py')] |
|
16 | test_profiles = [prof for prof in os.listdir('profile/test/') if prof.endswith('.py')] | |
17 |
|
17 | |||
18 | ### null template should return empty |
|
18 | ### null template should return empty | |
19 |
for prof |
|
19 | for prof in test_profiles : | |
|
20 | yield check_null_profile,prof | |||
|
21 | ### end null test | |||
|
22 | ||||
|
23 | def check_null_profile(profile): | |||
20 |
|
|
24 | loader = PyFileConfigLoader(profile, path=[os.path.join(os.getcwdu(),'profile/test')]) | |
21 |
|
|
25 | config = loader.load_config() | |
22 |
|
|
26 | C = ConverterTemplate(config=config) | |
23 |
|
|
27 | C.read('tests/ipynbref/IntroNumPy.orig.ipynb') | |
24 |
|
|
28 | result,_ = C.convert() | |
25 |
|
|
29 | nt.assert_equal(result,'') | |
26 | ### end null test |
|
|||
27 |
|
30 |
General Comments 0
You need to be logged in to leave comments.
Login now