def test_run_incorrect_source(self): source = "\\documentclass{article}\n" "\\begin{document}\n" "This is a test.\n" with pytest.raises(TexError): compile_source(source)
def test_run_unkown_command(self): command = "unknown" with pytest.raises(CalledProcessError): compile_source(self.source, command=command)
def test_run_tex_custom_latex_command(self): command = "lualatex" pdf = compile_source(self.source, command=command) assert pdf is not None
def test_run_latexmk(self): command = "latexmk -pdf" pdf = compile_source(self.source, command=command) assert pdf is not None
def test_run_tex(self): pdf = compile_source(self.source) assert pdf is not None