From 83c96770c8d864f8318ffbf0fa5cf6da9a7ae16d Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 1 Aug 2017 14:25:49 +1000 Subject: [PATCH] fix latex tests --- tests/test_latex.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_latex.py b/tests/test_latex.py index f1a6faa90..376abb2d8 100644 --- a/tests/test_latex.py +++ b/tests/test_latex.py @@ -11,7 +11,7 @@ def test_latex(): d = getEmptyCol() # change latex cmd to simulate broken build import anki.latex - anki.latex.latexCmds[0][0] = "nolatex" + anki.latex.pngCommands[0][0] = "nolatex" # add a note with latex f = d.newNote() f['Front'] = "[latex]hello[/latex]" @@ -27,7 +27,7 @@ def test_latex(): print("aborting test; latex or dvipng is not installed") return # fix path - anki.latex.latexCmds[0][0] = "latex" + anki.latex.pngCommands[0][0] = "latex" # check media db should cause latex to be generated d.media.check() assert len(os.listdir(d.media.dir())) == 1