@@ -100,7 +100,7 @@ def with_read_only(self, read_only: bool = False) -> Store:
100100 -------
101101 A new store of the same type with the new read only attribute.
102102 """
103- raise NotImplementedError (
103+ raise NotImplementedError ( # pragma: no cover
104104 f"with_read_only is not implemented for the { type (self )} store type."
105105 )
106106
@@ -150,7 +150,7 @@ async def is_empty(self, prefix: str) -> bool:
150150 True if the store is empty, False otherwise.
151151 """
152152 if not self .supports_listing :
153- raise NotImplementedError
153+ raise NotImplementedError # pragma: no cover
154154 if prefix != "" and not prefix .endswith ("/" ):
155155 prefix += "/"
156156 async for _ in self .list_prefix (prefix ):
@@ -164,9 +164,9 @@ async def clear(self) -> None:
164164 Remove all keys and values from the store.
165165 """
166166 if not self .supports_deletes :
167- raise NotImplementedError
167+ raise NotImplementedError # pragma: no cover
168168 if not self .supports_listing :
169- raise NotImplementedError
169+ raise NotImplementedError # pragma: no cover
170170 self ._check_writable ()
171171 await self .delete_dir ("" )
172172
@@ -393,9 +393,9 @@ async def delete_dir(self, prefix: str) -> None:
393393 Remove all keys and prefixes in the store that begin with a given prefix.
394394 """
395395 if not self .supports_deletes :
396- raise NotImplementedError
396+ raise NotImplementedError # pragma: no cover
397397 if not self .supports_listing :
398- raise NotImplementedError
398+ raise NotImplementedError # pragma: no cover
399399 self ._check_writable ()
400400 if prefix != "" and not prefix .endswith ("/" ):
401401 prefix += "/"
0 commit comments