We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86c4ab0 commit 3a64f32Copy full SHA for 3a64f32
napari_cellseg3d/_tests/test_dock_widget.py
@@ -1,4 +1,3 @@
1
-import os
2
from pathlib import Path
3
4
from tifffile import imread
@@ -7,8 +6,8 @@
7
6
8
9
def test_prepare(make_napari_viewer):
10
- path_image = Path(
11
- os.path.dirname(os.path.realpath(__file__)) + "/res/test.tif"
+ path_image = str(
+ Path(__file__).resolve().parent + "/res/test.tif"
12
)
13
image = imread(str(path_image))
14
viewer = make_napari_viewer()
@@ -19,6 +18,4 @@ def test_prepare(make_napari_viewer):
19
18
20
assert widget.filetype == ".tif"
21
assert widget.as_folder == False
22
- assert Path(widget.csv_path) == Path(
23
- os.path.dirname(os.path.realpath(__file__)) + "/res/_train0.csv"
24
- )
+ assert Path(widget.csv_path) == (Path(__file__).resolve().parent / "res/_train0.csv")
0 commit comments