From e5ed110d654813699fc68c2dbb9693686f36f799 Mon Sep 17 00:00:00 2001 From: dae Date: Tue, 3 Jun 2014 17:25:43 +0900 Subject: [PATCH] fix latex test --- tests/test_latex.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_latex.py b/tests/test_latex.py index 4b7fc83af..5af8c5478 100644 --- a/tests/test_latex.py +++ b/tests/test_latex.py @@ -8,7 +8,7 @@ def test_latex(): d = getEmptyDeck() # change latex cmd to simulate broken build import anki.latex - anki.latex.latexCmd[0] = "nolatex" + anki.latex.latexCmds[0][0] = "nolatex" # add a note with latex f = d.newNote() f['Front'] = u"[latex]hello[/latex]" @@ -17,7 +17,7 @@ def test_latex(): assert len(os.listdir(d.media.dir())) == 0 # check the error message msg = f.cards()[0].q() - assert "executing latex" in msg + assert "executing nolatex" in msg assert "installed" in msg # check if we have latex installed, and abort test if we don't for cmd in ("latex", "dvipng"): @@ -26,7 +26,7 @@ def test_latex(): print "aborting test; %s is not installed" % cmd return # fix path - anki.latex.latexCmd[0] = "latex" + anki.latex.latexCmds[0][0] = "latex" # check media db should cause latex to be generated d.media.check() assert len(os.listdir(d.media.dir())) == 1