-
-
Notifications
You must be signed in to change notification settings - Fork 344
Improve test coverage for storage classes #2693
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
Merged
+406
−51
Merged
Changes from all commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
2ea442c
Run Store tests on logging
maxrjones 7f76575
Run store tests on wrapper
maxrjones 98b7392
Add read only open tests to WrapperStore
maxrjones 18be47f
Ignore new coverage files
maxrjones 69ce1d7
Simplify wrapper tests
maxrjones 5877355
Fix __eq__ method in WrapperStore
maxrjones b4310fd
Implement __repr__ for WrapperStore
maxrjones d08458e
Allow separate open and init kwargs
maxrjones f663694
Add open class method to LoggingStore
maxrjones cf62f67
Add __str__ to WrapperStore
maxrjones 31f9931
Add repr test for LoggingStore
maxrjones 964aeaa
Fix __eq__ in LoggingStore
maxrjones 332f564
Test getsize for stores
maxrjones 4d4d728
Test for invalid ByteRequest
maxrjones 30d1323
Use stdout rather than stderr as the default logging stream
maxrjones 9764204
Test default logging stream
maxrjones fefd666
Add test for getsize_prefix
maxrjones 6f240c2
Document buffer prototype parameter
maxrjones d2bbd9d
Add test for invalid modes in StorePath.open()
maxrjones 85f44db
Add test for contains_group
maxrjones 51c0c15
Add tests for contains_array
maxrjones ddd6bc9
Test for invalid root type for LocalStore
maxrjones 62a528c
Test LocalStore.get with default prototype
maxrjones 5f00efd
Test for invalid set buffer arguments
maxrjones 6923337
Test get and set on closed stores
maxrjones 0792fa8
Test using stores in a context manager
maxrjones dd0de05
Specify abstract methods for StoreTests
maxrjones 4dba40c
Apply suggestions from code review
maxrjones 48abe94
Lint
maxrjones bf4589d
Fix typing for LoggingStore
maxrjones 5b37417
Match specific Errors in tests
maxrjones 74647de
Add docstring
maxrjones c8ebcd0
Parametrize tests
maxrjones 1e96600
Test for contains group/array at multiple heirarchies
maxrjones cc14e07
Update TypeError on GpuMemoryStore
maxrjones 5148dd6
Merge branch 'main' into testing-storage
maxrjones bf58808
Don't implement _is_open setter on wrapped stores
maxrjones e1caef0
Update reprs for LoggingStore and WrapperStore
maxrjones 1922d2d
Test check_writeable and close for WrapperStore
maxrjones 45ea40d
Update pull request template (#2717)
brokkoli71 b281bc9
Add release notes
maxrjones 9a75da2
Merge branch 'main' into testing-storage
maxrjones ca83bd6
Merge branch 'main' into testing-storage
maxrjones 0d6eccf
Comprehensive changelog entry
maxrjones 9059135
Match error message
maxrjones 1e080c0
Merge branch 'main' into testing-storage
maxrjones 1587fd1
Apply suggestions from code review
maxrjones 5e16b3d
Update 2693.bugfix.rst
maxrjones 128ef99
Merge branch 'main' into testing-storage
jhamman 1faa66c
Merge branch 'main' into testing-storage
d-v-b 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 hidden or 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 |
---|---|---|
|
@@ -83,6 +83,7 @@ src/zarr/_version.py | |
data/* | ||
src/fixture/ | ||
fixture/ | ||
junit.xml | ||
|
||
.DS_Store | ||
tests/.hypothesis | ||
|
This file contains hidden or 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,13 @@ | ||
Implement open() for LoggingStore | ||
LoggingStore is now a generic class. | ||
Use stdout rather than stderr as the default stream for LoggingStore | ||
Ensure that ZipStore is open before getting or setting any values | ||
Update equality for LoggingStore and WrapperStore such that 'other' must also be a LoggingStore or WrapperStore respectively, rather than only checking the types of the stores they wrap. | ||
Indicate StoreTest's `test_store_repr`, `test_store_supports_writes`, `test_store_supports_partial_writes`, and `test_store_supports_listing` need to be implemented using `@abstractmethod` rather than `NotImplementedError`. | ||
Separate instantiating and opening a store in StoreTests | ||
Test using Store as a context manager in StoreTests | ||
Match the errors raised by read only stores in StoreTests | ||
Test that a ValueError is raise for invalid byte range syntax in StoreTests | ||
Test getsize() and getsize_prefix() in StoreTests | ||
Test the error raised for invalid buffer arguments in StoreTests | ||
Test that data can be written to a store that's not yet open using the store.set method in StoreTests |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.