mirror of https://github.com/Nonannet/pyladoc.git
Tests update to write no files to tests/out it WRITE_RESULT_FILES = False
This commit is contained in:
parent
dba8f5997e
commit
b3c2f5e384
|
@ -168,7 +168,9 @@ def test_latex_render():
|
||||||
with open('tests/out/test_html_render1.tex', 'w', encoding='utf-8') as f:
|
with open('tests/out/test_html_render1.tex', 'w', encoding='utf-8') as f:
|
||||||
f.write(doc.to_latex())
|
f.write(doc.to_latex())
|
||||||
|
|
||||||
assert doc.to_pdf('tests/out/test_latex_render1.pdf', font_family='serif')
|
assert doc.to_pdf('tests/out/test_latex_render1.pdf', font_family='serif')
|
||||||
|
else:
|
||||||
|
assert doc.to_pdf('', font_family='serif') # Write only to temp folder
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
|
@ -102,7 +102,9 @@ def test_latex_render():
|
||||||
with open('tests/out/test_html_render2.tex', 'w', encoding='utf-8') as f:
|
with open('tests/out/test_html_render2.tex', 'w', encoding='utf-8') as f:
|
||||||
f.write(doc.to_latex())
|
f.write(doc.to_latex())
|
||||||
|
|
||||||
assert doc.to_pdf('tests/out/test_latex_render2.pdf', font_family='serif')
|
assert doc.to_pdf('tests/out/test_latex_render2.pdf', font_family='serif')
|
||||||
|
else:
|
||||||
|
assert doc.to_pdf('', font_family='serif') # Write only to temp folder
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Reference in New Issue