Skip to content

Commit 9cfd9b3

Browse files
Altay Sansaltasansal
authored andcommitted
Refactor mock_store to use LocalFileSystem.
1 parent ef87908 commit 9cfd9b3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/unit/conftest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
import numpy as np
99
import pytest
10+
from fsspec.implementations.local import LocalFileSystem
1011
from numpy.typing import NDArray
1112
from zarr import Group
1213
from zarr import consolidate_metadata
@@ -32,7 +33,8 @@
3233
def mock_store(tmp_path_factory):
3334
"""Make a mocked MDIO store for writing."""
3435
tmp_dir = tmp_path_factory.mktemp("mdio")
35-
return FsspecStore(tmp_dir.name)
36+
fs = LocalFileSystem(tmp_dir.name)
37+
return FsspecStore(fs)
3638

3739

3840
@pytest.fixture

0 commit comments

Comments
 (0)