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

Function test_latex_to_png_mpl_runs

IPython/lib/tests/test_latextools.py:48–60  ·  view source on GitHub ↗

Test that latex_to_png_mpl just runs without error.

()

Source from the content-addressed store, hash-verified

46
47@skipif_not_matplotlib
48def test_latex_to_png_mpl_runs():
49 """
50 Test that latex_to_png_mpl just runs without error.
51 """
52 def mock_kpsewhich(filename):
53 nt.assert_equal(filename, "breqn.sty")
54 return None
55
56 for (s, wrap) in [("$x^2$", False), ("x^2", True)]:
57 yield (latextools.latex_to_png_mpl, s, wrap)
58
59 with patch.object(latextools, "kpsewhich", mock_kpsewhich):
60 yield (latextools.latex_to_png_mpl, s, wrap)
61
62@skipif_not_matplotlib
63def test_latex_to_html():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected