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