Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Carreau committed Dec 2, 2020
1 parent 28ed49d commit f97fca9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 4 additions & 4 deletions zarr/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ class Store(MutableMapping):
"""

_readable = True
_writable = True
_deletable = True
_writeable = True
_erasable = True
_listable = True

def is_readable(self):
Expand All @@ -109,8 +109,8 @@ def is_writeable(self):
def is_listable(self):
return self._listable

def is_deletable(self):
return self._deletable
def is_erasable(self):
return self._erasable

def __enter__(self):
if not hasattr(self, "_open_count"):
Expand Down
8 changes: 8 additions & 0 deletions zarr/tests/test_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@ class InvalidStore:
Store._ensure_store(InvalidStore())


def test_capabilities():
s = KVStore(dict())
s.is_readable()
s.is_listable()
s.is_erasable()
s.is_writeable()


def test_getsize_non_implemented():
assert getsize(object()) == -1

Expand Down

0 comments on commit f97fca9

Please sign in to comment.