Fix: use tmp_path fixture

This commit is contained in:
Bertrand Benjamin 2022-04-13 20:41:34 +02:00
parent fe18dc4ef1
commit 5af4662d43
2 changed files with 3 additions and 4 deletions

View File

@ -22,8 +22,8 @@ extra parameters or packages included.
return source
def test_latexmk(tex_path):
tmp_path = tex_path.parent
def test_latexmk(tex_path, tmp_path):
#tmp_path = tex_path.parent
os.chdir(tmp_path)
texfile = str(tex_path.name)

View File

@ -37,8 +37,7 @@ def test_join_pdf(multiple_pdf):
assert Path(output).exists()
def test_join_pdf_failed(multiple_pdf):
tmp_path = multiple_pdf[0].parent
def test_join_pdf_failed(multiple_pdf, tmp_path):
os.chdir(tmp_path)
deps = [str(d.name) for d in multiple_pdf] + ["doesnotexists.pdf"]