Example #1
0
def test_LaTeXDirectory_file(deep_dir):
    origdir = os.getcwd()
    deep_file = os.path.join(deep_dir, 'f.tex')
    with utils.LaTeXDirectory(deep_file):
        assert os.getcwd() == deep_dir

    assert os.getcwd() == origdir
Example #2
0
def test_compile_smoke(deep_dir, latex_content):
    deep_file = os.path.join(deep_dir, 'f.tex')

    with utils.LaTeXDirectory(deep_file) as latex:
        latex.compile(deep_file)
Example #3
0
def test_LaTeXDirectory_folder_only(deep_dir):
    origdir = os.getcwd()
    with utils.LaTeXDirectory(deep_dir):
        assert os.getcwd() == deep_dir

    assert os.getcwd() == origdir