MCPcopy Create free account
hub / github.com/AstrBotDevs/AstrBot / save

Method save

tests/unit/test_webchat_upload_image_format.py:19–21  ·  view source on GitHub ↗
(self, destination)

Source from the content-addressed store, hash-verified

17 content_type = "image/png"
18
19 async def save(self, destination):
20 with open(destination, "wb") as output:
21 output.write(image_buffer.getvalue())
22
23 class FakeDatabase:
24 def __init__(self):

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected