Skip to content

Commit beadf22

Browse files
committed
release
1 parent 13787d7 commit beadf22

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed

metablock/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from .spaces import Block, Service, Space, SpaceExtension
66
from .user import User
77

8-
__version__ = "0.7.0"
8+
__version__ = "0.7.1"
99

1010
__all__ = [
1111
"Metablock",

metablock/components.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ async def get_list(self, **kwargs: Any) -> list[E]:
165165
await self.cli.request(url, **kwargs),
166166
)
167167

168-
async def get_full_list(self, **kwargs: Any) -> list[MetablockEntity]:
168+
async def get_full_list(self, **kwargs: Any) -> list[E]:
169169
return [d async for d in self.paginate(**kwargs)]
170170

171171
async def get(self, id_: str, **kwargs: Any) -> E:

metablock/spaces.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ def blocks(self) -> SpaceBlocks:
1616
return SpaceBlocks(self, Block, "services")
1717

1818
@property
19-
def services(self) -> SpaceBlocks:
19+
def services(self) -> SpaceBlocks: # pragma: no cover
20+
# TODO: Deprecate
2021
return self.blocks
2122

2223
@property

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "metablock"
3-
version = "0.7.0"
3+
version = "0.7.1"
44
description = "Metablock cloud python client"
55
authors = ["Luca <luca@quantmind.com>"]
66
license = "BSD"

tests/test_spaces.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,9 @@ async def test_get_space_403(cli: Metablock, invalid_headers: dict) -> None:
1818
with pytest.raises(MetablockResponseError) as exc:
1919
await cli.spaces.get_list(headers=invalid_headers)
2020
assert exc.value.status == 403
21+
22+
23+
async def test_get_space_extensions(cli: Metablock) -> None:
24+
spaces = await cli.spaces.get_list()
25+
extensions = await spaces[0].extensions.get_full_list()
26+
assert isinstance(extensions, list)

0 commit comments

Comments
 (0)