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

Function test_send_file_path

tests/test_helpers.py:192–198  ·  view source on GitHub ↗
(tmp_path: Path)

Source from the content-addressed store, hash-verified

190
191
192async def test_send_file_path(tmp_path: Path) -> None:
193 app = Quart(__name__)
194 file_ = tmp_path / "send.img"
195 file_.write_text("something")
196 async with app.app_context():
197 response = await send_file(Path(file_))
198 assert (await response.get_data(as_text=False)) == file_.read_bytes()
199
200
201async def test_send_file_bytes_io() -> 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…