Example #1
0
 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)
Example #2
0
 def test_run_unkown_command(self):
     command = "unknown"
     with pytest.raises(CalledProcessError):
         compile_source(self.source, command=command)
Example #3
0
 def test_run_tex_custom_latex_command(self):
     command = "lualatex"
     pdf = compile_source(self.source, command=command)
     assert pdf is not None
Example #4
0
 def test_run_latexmk(self):
     command = "latexmk -pdf"
     pdf = compile_source(self.source, command=command)
     assert pdf is not None
Example #5
0
 def test_run_tex(self):
     pdf = compile_source(self.source)
     assert pdf is not None