def test_build(): # name of the text file paper_name = "working" # path to directory containing tex file cwd = os.path.dirname(os.path.realpath(__file__)) # call helper function check_build(paper_name, cwd) cleanup_files()
def test_build_nofigure_error(): # name of the text file paper_name = "no_fig" # path to directory containing tex file cwd = os.path.dirname(os.path.realpath(__file__)) # call helper function try: check_build(paper_name, cwd) except LatexMissingFigureError as e: pass cleanup_files()
def test_beamer(): # name of the text file paper_name = "beamer_presentation" # path to directory containing tex file cwd = os.path.dirname(os.path.realpath(__file__)) # call helper function check_build(paper_name, cwd, bibtex=False, error_on_warnings=False) cleanup_files()
def test_build(): # name of the text file paper_name = "paper" # path to directory containing tex file cwd = os.getcwd() # file types to remove after testing cleanup=["pdf", "aux", "bbl", "log", "blg", "synctex.gz"] # call helper function check_build(paper_name, cwd, cleanup=["pdf", "aux", "bbl", "log", "blg", "synctex.gz"])