##// END OF EJS Templates
yield tests
Matthias BUSSONNIER -
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
@@ -1,27 +1,30 b''
1 1 import io
2 2 import nose.tools as nt
3 3 import os
4 4 from nose.tools import nottest
5 5 from converters.template import ConverterTemplate
6 6 from IPython.config.loader import PyFileConfigLoader
7 7
8 8
9 9
10 10
11 11 def test_evens():
12 12 reflist = [
13 13 'tests/ipynbref/IntroNumPy.orig'
14 14 ]
15 15
16 16 test_profiles = [prof for prof in os.listdir('profile/test/') if prof.endswith('.py')]
17 17
18 18 ### null template should return empty
19 for profile in test_profiles:
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