MCPcopy Create free account
hub / github.com/ipython/ipython / test_genelatex_wrap_without_breqn

Function test_genelatex_wrap_without_breqn

IPython/lib/tests/test_latextools.py:115–134  ·  view source on GitHub ↗

Test genelatex with wrap=True for the case breqn.sty is not installed.

()

Source from the content-addressed store, hash-verified

113
114
115def test_genelatex_wrap_without_breqn():
116 """
117 Test genelatex with wrap=True for the case breqn.sty is not installed.
118 """
119 def mock_kpsewhich(filename):
120 nt.assert_equal(filename, "breqn.sty")
121 return None
122
123 with patch.object(latextools, "kpsewhich", mock_kpsewhich):
124 nt.assert_equal(
125 '\n'.join(latextools.genelatex("x^2", True)),
126 r'''\documentclass{article}
127\usepackage{amsmath}
128\usepackage{amsthm}
129\usepackage{amssymb}
130\usepackage{bm}
131\pagestyle{empty}
132\begin{document}
133$$x^2$$
134\end{document}''')
135
136
137@skipif_not_matplotlib

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected