##// END OF EJS Templates
Removed "profiles"... Templates that are shipped with nbconvert by default should...
Removed "profiles"... Templates that are shipped with nbconvert by default should have settings built into exporter.py class. If the user wants to add a new template and use profile setting with it, the "profile" (config file) should be specified via the commandline when calling the exporter.

File last commit:

r10386:6416b524
r10435:896aaed3
Show More
test_transformers.py
35 lines | 864 B | text/x-python | PythonLexer
import io
import nose.tools as nt
from nose.tools import nottest
from converters.latex_transformer import rm_math_space
@nottest
def test_space(input, reference):
nt.assert_equal(rm_math_space(input),reference)
def test_evens():
unchanged = [
"""
you should be able to type
$ a single dollar and go to the line
it shouldn't be transformed.
"""
]
references = [
('$e$','$e$'),
('$ e $','$e$'),
('xxx$e^i$yyy','xxx$e^i$yyy'),
('xxx$ e^i $yyy','xxx$e^i$yyy'),
('xxx$e^i $yyy','xxx$e^i$yyy'),
('xxx$ e^i$yyy','xxx$e^i$yyy'),
('\$ e $ e $','\$ e $e$'),
('',''),
]
for k,v in references :
yield test_space, k,v
for unch in unchanged :
yield test_space, unch, unch