MCPcopy Create free account
hub / github.com/pallets/quart / test_send_file_bytes_io

Function test_send_file_bytes_io

tests/test_helpers.py:201–206  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

199
200
201async def test_send_file_bytes_io() -> None:
202 app = Quart(__name__)
203 io_stream = BytesIO(b"something")
204 async with app.app_context():
205 response = await send_file(io_stream, mimetype="text/plain")
206 assert (await response.get_data(as_text=False)) == b"something"
207
208
209async def test_send_file_no_mimetype() -> None:

Callers

nothing calls this directly

Calls 4

app_contextMethod · 0.95
QuartClass · 0.90
send_fileFunction · 0.90
get_dataMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…