Fixing LaTeX rendering on windows.
This commit is contained in:
parent
70333a4e41
commit
04e070058e
2 changed files with 5 additions and 7 deletions
|
@ -47,7 +47,8 @@ def check_render_results(result):
|
|||
result = result.toVariant()
|
||||
assert type(result) == str
|
||||
[path, width, height] = result.split(",")
|
||||
assert exists(path)
|
||||
assert path.startswith("file:///")
|
||||
assert exists(path[len("file:///"):])
|
||||
assert match(r"\d+", width)
|
||||
assert match(r"\d+", height)
|
||||
return True
|
||||
|
@ -92,10 +93,7 @@ class TestLatex:
|
|||
latex_obj.renderSync(*args)
|
||||
prerendered = latex_obj.findPrerendered(*args)
|
||||
assert type(prerendered) == str
|
||||
[path, width, height] = prerendered.split(",")
|
||||
assert exists(path)
|
||||
assert match(r"\d+", width)
|
||||
assert match(r"\d+", height)
|
||||
check_render_results(prerendered)
|
||||
prerendered2 = latex_obj.findPrerendered(args[0], args[1]+2, args[2])
|
||||
assert prerendered2 == ""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue