Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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):
Callers
1
test_webchat_upload_uses_detected_image_type
Function · 0.45
Calls
1
write
Method · 0.45
Tested by
no test coverage detected