-
-
Notifications
You must be signed in to change notification settings - Fork 310
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: functional .children method for groups * changes necessary for correctly generating list of children * add stand-alone test for group.children * give type hints a glow-up * test: use separate assert statements to avoid platform-dependent ordering issues * test: put fixtures in conftest, add MemoryStore fixture * docs: release notes * test: remove prematurely-added mock s3 fixture * fix: Rename children to members; AsyncGroup.members yields tuples of (name, AsyncArray / AsyncGroup) pairs; Group.members repackages these into a dict. * fix: make Group.members return a tuple of str, Array | Group pairs * fix: revert changes to synchronization code; this is churn that we need to deal with * make mypy happy * feat: implement member-specific iteration methods in asyncgroup * chore: clean up some post-merge issues * chore: remove extra directory added by test code --------- Co-authored-by: Joseph Hamman <joe@earthmover.io>
- Loading branch information
Showing
5 changed files
with
215 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import pathlib | ||
|
||
import pytest | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import pathlib | ||
import pytest | ||
|
||
from zarr.store import LocalStore, StorePath, MemoryStore, RemoteStore | ||
|
||
|
||
@pytest.fixture(params=[str, pathlib.Path]) | ||
def path_type(request): | ||
return request.param | ||
|
||
|
||
# todo: harmonize this with local_store fixture | ||
@pytest.fixture | ||
def store_path(tmpdir): | ||
store = LocalStore(str(tmpdir)) | ||
p = StorePath(store) | ||
return p | ||
|
||
|
||
@pytest.fixture(scope="function") | ||
def local_store(tmpdir): | ||
return LocalStore(str(tmpdir)) | ||
|
||
|
||
@pytest.fixture(scope="function") | ||
def remote_store(): | ||
return RemoteStore() | ||
|
||
|
||
@pytest.fixture(scope="function") | ||
def memory_store(): | ||
return MemoryStore() |
Oops, something went wrong.