(tmp_path: Path)
| 244 | |
| 245 | |
| 246 | async def test_send_file_last_modified(tmp_path: Path) -> None: |
| 247 | app = Quart(__name__) |
| 248 | file_ = tmp_path / "send.img" |
| 249 | file_.write_text("something") |
| 250 | async with app.app_context(): |
| 251 | response = await send_file(str(file_)) |
| 252 | mtime = datetime.fromtimestamp(file_.stat().st_mtime, tz=timezone.utc) |
| 253 | mtime = mtime.replace(microsecond=0) |
| 254 | assert response.last_modified == mtime |
| 255 | |
| 256 | |
| 257 | async def test_send_file_last_modified_override(tmp_path: Path) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…