forked from zarr-developers/VirtualiZarr
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ab/fix tests #1
Merged
jsignell
merged 13 commits into
jsignell:main-kerchunk
from
abarciauskas-bgse:ab/fix-tests
Jan 31, 2025
Merged
Ab/fix tests #1
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
ff659b9
Fixed some warnings
abarciauskas-bgse b3ed8ff
Fixed codec test
abarciauskas-bgse 57be796
Fix warnings in test_backend.py
abarciauskas-bgse deb15ba
Tests passing
abarciauskas-bgse cecc151
Remove obsolete comment
abarciauskas-bgse 6d06291
Add fill value to fixture
abarciauskas-bgse 4a2f294
Remove obsolete conditional to ds.close()
abarciauskas-bgse aa55a39
Reset workflows with --cov
abarciauskas-bgse 83379ee
Reset conftest.py fixtures (air encoding)
abarciauskas-bgse 7786421
Reset contributiong (--cov) removed
abarciauskas-bgse 45eb86b
Remove context manager from readers/common.py
abarciauskas-bgse 0babb65
Reset test_backend with ds.dims
abarciauskas-bgse dc4ed8b
Reset test_icechunk (air encoding)
abarciauskas-bgse File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,7 +58,9 @@ def test_manifest_array_zarr_v2_normalized(self): | |
|
||
# Get codecs and verify | ||
actual_codecs = get_codecs(manifest_array, normalize_to_zarr_v3=True) | ||
expected_codecs = manifest_array.zarray._v3_codec_pipeline() | ||
expected_codecs = ( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ❌ Fixes failing test |
||
manifest_array.zarray.serializer(), | ||
) + manifest_array.zarray._v3_codec_pipeline() | ||
assert actual_codecs == expected_codecs | ||
|
||
@requires_zarr_python_v3 | ||
|
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 |
---|---|---|
|
@@ -42,7 +42,7 @@ def test_zarr_v3_metadata_conformance(tmpdir, vds_with_manifest_arrays: Dataset) | |
assert isinstance(metadata["fill_value"], (bool, int, float, str, list)) | ||
assert ( | ||
isinstance(metadata["codecs"], list) | ||
and len(metadata["codecs"]) > 1 | ||
and len(metadata["codecs"]) == 1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ❌ Fixes failing test |
||
and all(isconfigurable(codec) for codec in metadata["codecs"]) | ||
) | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ This fixes the
Group.create_array() got an unexpected keyword argument 'exists_ok'
test failure