diff --git a/test/worker/test_compile.py b/test/worker/test_compile.py index edd2fc3..c046473 100644 --- a/test/worker/test_compile.py +++ b/test/worker/test_compile.py @@ -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) diff --git a/test/worker/test_join_pdf.py b/test/worker/test_join_pdf.py index 26ae726..5d6b843 100644 --- a/test/worker/test_join_pdf.py +++ b/test/worker/test_join_pdf.py @@ -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"]