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

Function mock_find_cmd

IPython/lib/tests/test_latextools.py:23–25  ·  view source on GitHub ↗
(arg)

Source from the content-addressed store, hash-verified

21
22def check_latex_to_png_dvipng_fails_when_no_cmd(command):
23 def mock_find_cmd(arg):
24 if arg == command:
25 raise FindCmdError
26
27 with patch.object(latextools, "find_cmd", mock_find_cmd):
28 nt.assert_equal(latextools.latex_to_png_dvipng("whatever", True),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected