-
-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve test coverage for storage classes (#2693)
* Run Store tests on logging * Run store tests on wrapper * Add read only open tests to WrapperStore * Ignore new coverage files * Simplify wrapper tests * Fix __eq__ method in WrapperStore * Implement __repr__ for WrapperStore * Allow separate open and init kwargs * Add open class method to LoggingStore * Add __str__ to WrapperStore * Add repr test for LoggingStore * Fix __eq__ in LoggingStore * Test getsize for stores * Test for invalid ByteRequest * Use stdout rather than stderr as the default logging stream * Test default logging stream * Add test for getsize_prefix * Document buffer prototype parameter * Add test for invalid modes in StorePath.open() * Add test for contains_group * Add tests for contains_array * Test for invalid root type for LocalStore * Test LocalStore.get with default prototype * Test for invalid set buffer arguments * Test get and set on closed stores * Test using stores in a context manager * Specify abstract methods for StoreTests * Apply suggestions from code review Co-authored-by: Davis Bennett <[email protected]> * Lint * Fix typing for LoggingStore Co-authored-by: Davis Bennett <[email protected]> * Match specific Errors in tests Co-authored-by: Davis Bennett <[email protected]> * Add docstring Co-authored-by: Davis Bennett <[email protected]> * Parametrize tests Co-authored-by: Davis Bennett <[email protected]> * Test for contains group/array at multiple heirarchies Co-authored-by: Davis Bennett <[email protected]> * Update TypeError on GpuMemoryStore * Don't implement _is_open setter on wrapped stores * Update reprs for LoggingStore and WrapperStore * Test check_writeable and close for WrapperStore * Update pull request template (#2717) * Add release notes * Comprehensive changelog entry * Match error message * Apply suggestions from code review Co-authored-by: David Stansby <[email protected]> * Update 2693.bugfix.rst --------- Co-authored-by: Davis Bennett <[email protected]> Co-authored-by: Hannes Spitz <[email protected]> Co-authored-by: David Stansby <[email protected]> Co-authored-by: Joe Hamman <[email protected]>
- Loading branch information
1 parent
9fd4545
commit 80aea2a
Showing
14 changed files
with
406 additions
and
51 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
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 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 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
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
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
Oops, something went wrong.