Test genelatex with wrap=False.
()
| 66 | |
| 67 | |
| 68 | def test_genelatex_no_wrap(): |
| 69 | """ |
| 70 | Test genelatex with wrap=False. |
| 71 | """ |
| 72 | def mock_kpsewhich(filename): |
| 73 | assert False, ("kpsewhich should not be called " |
| 74 | "(called with {0})".format(filename)) |
| 75 | |
| 76 | with patch.object(latextools, "kpsewhich", mock_kpsewhich): |
| 77 | nt.assert_equal( |
| 78 | '\n'.join(latextools.genelatex("body text", False)), |
| 79 | r'''\documentclass{article} |
| 80 | \usepackage{amsmath} |
| 81 | \usepackage{amsthm} |
| 82 | \usepackage{amssymb} |
| 83 | \usepackage{bm} |
| 84 | \pagestyle{empty} |
| 85 | \begin{document} |
| 86 | body text |
| 87 | \end{document}''') |
| 88 | |
| 89 | |
| 90 | def test_genelatex_wrap_with_breqn(): |
nothing calls this directly
no outgoing calls
no test coverage detected