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

Function test_genelatex_no_wrap

IPython/lib/tests/test_latextools.py:68–87  ·  view source on GitHub ↗

Test genelatex with wrap=False.

()

Source from the content-addressed store, hash-verified

66
67
68def 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}
86body text
87\end{document}''')
88
89
90def test_genelatex_wrap_with_breqn():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected