Tests update to write no files to tests/out it WRITE_RESULT_FILES = False

This commit is contained in:
Nicolas Kruse 2025-05-21 16:50:23 +02:00
parent dba8f5997e
commit b3c2f5e384
2 changed files with 6 additions and 2 deletions

View File

@ -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__':

View File

@ -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__':