mirror of
https://github.com/ankitects/anki.git
synced 2025-11-23 13:07:12 -05:00
fix latex tests
This commit is contained in:
parent
a5997e400b
commit
83c96770c8
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue