(url: str, target_path: str)
| 838 | PILImage.new("RGBA", (1, 1), (255, 0, 0, 255)).save(image_path) |
| 839 | |
| 840 | async def fake_download(url: str, target_path: str) -> None: |
| 841 | assert url == "https://example.com/quoted.png" |
| 842 | with open(target_path, "wb") as f: |
| 843 | f.write(image_path.read_bytes()) |
| 844 | |
| 845 | monkeypatch.setattr( |
| 846 | "astrbot.core.utils.media_utils.download_file", |
nothing calls this directly
no test coverage detected