Skip to content

Commit

Permalink
🐛 fixed LaTeXRenderer testing for #23
Browse files Browse the repository at this point in the history
  • Loading branch information
Mi Yu committed Jan 30, 2018
1 parent 588a553 commit ec72865
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/test_latex_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,10 @@ def test_paragraph(self):
self._test_token('Paragraph', output)

def test_block_code(self):
output = '\n\\begin{lstlisting}[language=sh]\ninner\\end{lstlisting}\n'
self._test_token('BlockCode', output, language='sh')
func_path = 'mistletoe.latex_renderer.LaTeXRenderer.render_raw_text'
with mock.patch(func_path, return_value='inner'):
output = '\n\\begin{lstlisting}[language=sh]\ninner\\end{lstlisting}\n'
self._test_token('BlockCode', output, language='sh')

def test_list(self):
output = '\\begin{itemize}\ninner\\end{itemize}\n'
Expand Down

0 comments on commit ec72865

Please sign in to comment.