Skip to content

Commit 3a64f32

Browse files
committed
Removed os from test
1 parent 86c4ab0 commit 3a64f32

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import os
21
from pathlib import Path
32

43
from tifffile import imread
@@ -7,8 +6,8 @@
76

87

98
def test_prepare(make_napari_viewer):
10-
path_image = Path(
11-
os.path.dirname(os.path.realpath(__file__)) + "/res/test.tif"
9+
path_image = str(
10+
Path(__file__).resolve().parent + "/res/test.tif"
1211
)
1312
image = imread(str(path_image))
1413
viewer = make_napari_viewer()
@@ -19,6 +18,4 @@ def test_prepare(make_napari_viewer):
1918

2019
assert widget.filetype == ".tif"
2120
assert widget.as_folder == False
22-
assert Path(widget.csv_path) == Path(
23-
os.path.dirname(os.path.realpath(__file__)) + "/res/_train0.csv"
24-
)
21+
assert Path(widget.csv_path) == (Path(__file__).resolve().parent / "res/_train0.csv")

0 commit comments

Comments
 (0)