Skip to content

Commit c710f96

Browse files
committed
Updated conftest.py to reflect the expected data group when parsing from a zarr filename
1 parent 76f9e84 commit c710f96

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/napari_activelearning/_tests/conftest.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pytest
22
from unittest.mock import MagicMock, patch
3-
from pathlib import Path
3+
from pathlib import Path, PureWindowsPath
44
import numpy as np
55
import zarr
66
import zarrdataset as zds
@@ -82,7 +82,12 @@ def single_scale_disk_zarr(single_scale_array, tmpdir_factory):
8282
z_group = z_root.create_group(data_group)
8383

8484
z_group.create_dataset(name="0", data=sample_data, overwrite=True)
85-
data_group = str(Path(data_group) / "0")
85+
data_group = Path(data_group) / "0"
86+
87+
if isinstance(data_group, PureWindowsPath):
88+
data_group = data_group.as_posix()
89+
90+
data_group = str(data_group)
8691

8792
return z_root, input_filename, data_group, shape
8893

0 commit comments

Comments
 (0)