Skip to content

Commit 6124e29

Browse files
committed
fix: Fix directory display so that CI can identify
1 parent 0383f1f commit 6124e29

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_loadimage.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,14 @@
2727
@pytest.mark.parametrize("input_path, expected", load_image_param)
2828
def test_load_image_cases(input_path, expected, user_filesystem):
2929
base_dir, home_dir, cwd_dir, test_dir = user_filesystem
30+
test_file_dir = Path(__file__).parent
31+
src_image = test_file_dir.parent / "docs/examples/example.tiff"
3032

3133
# Copy test image into all directories
3234
for dir in [cwd_dir, home_dir, test_dir]:
3335
dst = Path(dir) / "example.tiff"
3436
dst.parent.mkdir(parents=True, exist_ok=True)
35-
shutil.copy("../docs/examples/example.tiff", dst)
37+
shutil.copy(src_image, dst)
3638

3739
old_cwd = Path.cwd()
3840
os.chdir(home_dir)

0 commit comments

Comments
 (0)