##// END OF EJS Templates
run some more test...
run some more test should yield them for more grained result

File last commit:

r9633:d0ee335a
r9633:d0ee335a
Show More
test_templates.py
27 lines | 769 B | text/x-python | PythonLexer
import io
import nose.tools as nt
import os
from nose.tools import nottest
from converters.template import ConverterTemplate
from IPython.config.loader import PyFileConfigLoader
def test_evens():
reflist = [
'tests/ipynbref/IntroNumPy.orig'
]
test_profiles = [prof for prof in os.listdir('profile/test/') if prof.endswith('.py')]
### null template should return empty
for profile in test_profiles:
loader = PyFileConfigLoader(profile, path=[os.path.join(os.getcwdu(),'profile/test')])
config = loader.load_config()
C = ConverterTemplate(config=config)
C.read('tests/ipynbref/IntroNumPy.orig.ipynb')
result,_ = C.convert()
nt.assert_equal(result,'')
### end null test