mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
fix latex check
This commit is contained in:
parent
1cebe4ee48
commit
85665bc18d
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ def test_latex():
|
|||
assert "installed" in msg
|
||||
# check if we have latex installed, and abort test if we don't
|
||||
if not shutil.which("latex") or not shutil.which("dvipng"):
|
||||
print("aborting test; %s is not installed" % cmd)
|
||||
print("aborting test; latex or dvipng is not installed")
|
||||
return
|
||||
# fix path
|
||||
anki.latex.latexCmds[0][0] = "latex"
|
||||
|
@ -111,4 +111,4 @@ def _test_includes_bad_command(bad):
|
|||
f['Front'] = '[latex]%s[/latex]' % bad;
|
||||
d.addNote(f)
|
||||
q = f.cards()[0].q()
|
||||
return ("'%s' is not allowed on cards" % bad in q, "Card content: %s" % q)
|
||||
return ("'%s' is not allowed on cards" % bad in q, "Card content: %s" % q)
|
||||
|
|
Loading…
Reference in a new issue