Skip to content

Commit f97fca9

Browse files
committed
coverage
1 parent 28ed49d commit f97fca9

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

zarr/storage.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ class Store(MutableMapping):
9696
"""
9797

9898
_readable = True
99-
_writable = True
100-
_deletable = True
99+
_writeable = True
100+
_erasable = True
101101
_listable = True
102102

103103
def is_readable(self):
@@ -109,8 +109,8 @@ def is_writeable(self):
109109
def is_listable(self):
110110
return self._listable
111111

112-
def is_deletable(self):
113-
return self._deletable
112+
def is_erasable(self):
113+
return self._erasable
114114

115115
def __enter__(self):
116116
if not hasattr(self, "_open_count"):

zarr/tests/test_storage.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,14 @@ class InvalidStore:
7171
Store._ensure_store(InvalidStore())
7272

7373

74+
def test_capabilities():
75+
s = KVStore(dict())
76+
s.is_readable()
77+
s.is_listable()
78+
s.is_erasable()
79+
s.is_writeable()
80+
81+
7482
def test_getsize_non_implemented():
7583
assert getsize(object()) == -1
7684

0 commit comments

Comments
 (0)