Fix: use tmp_path fixture
This commit is contained in:
parent
fe18dc4ef1
commit
5af4662d43
@ -22,8 +22,8 @@ extra parameters or packages included.
|
|||||||
return source
|
return source
|
||||||
|
|
||||||
|
|
||||||
def test_latexmk(tex_path):
|
def test_latexmk(tex_path, tmp_path):
|
||||||
tmp_path = tex_path.parent
|
#tmp_path = tex_path.parent
|
||||||
os.chdir(tmp_path)
|
os.chdir(tmp_path)
|
||||||
|
|
||||||
texfile = str(tex_path.name)
|
texfile = str(tex_path.name)
|
||||||
|
@ -37,8 +37,7 @@ def test_join_pdf(multiple_pdf):
|
|||||||
assert Path(output).exists()
|
assert Path(output).exists()
|
||||||
|
|
||||||
|
|
||||||
def test_join_pdf_failed(multiple_pdf):
|
def test_join_pdf_failed(multiple_pdf, tmp_path):
|
||||||
tmp_path = multiple_pdf[0].parent
|
|
||||||
os.chdir(tmp_path)
|
os.chdir(tmp_path)
|
||||||
|
|
||||||
deps = [str(d.name) for d in multiple_pdf] + ["doesnotexists.pdf"]
|
deps = [str(d.name) for d in multiple_pdf] + ["doesnotexists.pdf"]
|
||||||
|
Loading…
Reference in New Issue
Block a user