Test genelatex with wrap=True for the case breqn.sty is not installed.
()
| 113 | |
| 114 | |
| 115 | def 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 |
nothing calls this directly
no outgoing calls
no test coverage detected