##// END OF EJS Templates
Fix eafc8cb070: highlight tests should now pass a cell object
Pablo de Oliveira -
Show More
@@ -95,4 +95,4 b" def _pygment_highlight(cell, output_formatter, language='ipython'):"
95 else:
95 else:
96 lexer = get_lexer_by_name(language, stripall=True)
96 lexer = get_lexer_by_name(language, stripall=True)
97
97
98 return pygements_highlight(cell, lexer, output_formatter)
98 return pygements_highlight(cell['input'], lexer, output_formatter)
@@ -60,6 +60,6 b' class TestHighlight(TestsBase):'
60
60
61 def _try_highlight(self, method, test, tokens):
61 def _try_highlight(self, method, test, tokens):
62 """Try highlighting source, look for key tokens"""
62 """Try highlighting source, look for key tokens"""
63 results = method(test)
63 results = method({'input': test})
64 for token in tokens:
64 for token in tokens:
65 assert token in results
65 assert token in results
General Comments 0
You need to be logged in to leave comments. Login now