Test that latex_to_png_mpl just runs without error.
()
| 46 | |
| 47 | @skipif_not_matplotlib |
| 48 | def 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 |
| 63 | def test_latex_to_html(): |
nothing calls this directly
no outgoing calls
no test coverage detected