2026-05-18-19-19-36 修复样例加载提示和favicon

This commit is contained in:
2026-05-18 19:21:10 +08:00
parent 77b8ecdfbe
commit e5f0b1dca9
6 changed files with 103 additions and 4 deletions

View File

@@ -0,0 +1,24 @@
# 测试方案
开始时间2026-05-18-19-19-36
## 测试项
- `curl -s -o /dev/null -w '%{http_code}' http://127.0.0.1:8001/favicon.ico`
- `curl -s http://127.0.0.1:8001/api/samples`
- `pytest -q`
- Chrome headless 首页截图确认页面仍可渲染。
## 验收标准
- `/favicon.ico` 不再返回 404。
- `/api/samples` 返回样例视频和样例图像。
- 自动化测试通过。
- 网页端加载样例有明确页面提示。
## 执行结果
- `/favicon.ico`:通过,返回 `200 image/svg+xml`
- `/api/samples`:通过,返回 `synthetic_guidewire.mp4``synthetic_guidewire.png`
- `pytest -q`通过4 个测试全部通过。
- Chrome headless 首页截图:通过,页面可正常渲染。