Skip to content

Commit 260d1c3

Browse files
committed
use absolute path in test to avoid invalid resolution
1 parent 9c05bb7 commit 260d1c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_load_contents.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test the loadContents feature."""
2+
import os.path
23

34
import json
45
from pathlib import Path
@@ -14,7 +15,7 @@ def test_load_contents_file_array(tmp_path: Path) -> None:
1415
"--outdir",
1516
str(tmp_path),
1617
get_data("tests/load_contents-array.cwl"),
17-
"tests/load_contents-array.yml",
18+
str(Path(__file__) / "../load_contents-array.yml"),
1819
]
1920
assert main(params) == 0
2021
with open(tmp_path / "data.json") as out_fd:

0 commit comments

Comments
 (0)