Skip to content

Commit

Permalink
Return bytes from GetResult
Browse files Browse the repository at this point in the history
  • Loading branch information
maxrjones committed Dec 15, 2024
1 parent eb76698 commit f310260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_store/test_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async def get(self, store: ObjectStore, key: str) -> Buffer:
# TODO: There must be a better way to get the path to the store
store_path = re.search(PATTERN, str(store)).group(1)
new_local_store = obstore.store.LocalStore(prefix=store_path)
return self.buffer_cls.from_bytes(obstore.get(new_local_store, key))
return self.buffer_cls.from_bytes(obstore.get(new_local_store, key).bytes())

async def set(self, store: ObjectStore, key: str, value: Buffer) -> None:
# TODO: There must be a better way to get the path to the store
Expand Down

0 comments on commit f310260

Please sign in to comment.