(tmp_path: Path)
| 190 | |
| 191 | |
| 192 | async 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 | |
| 201 | async def test_send_file_bytes_io() -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…