Skip to content

test(web): add end-to-end HTTP integration tests for Web API endpoints - #272

Merged
liujuanjuan1984 merged 1 commit into
mainfrom
issue/258-web-api-http-tests
Aug 7, 2026
Merged

test(web): add end-to-end HTTP integration tests for Web API endpoints#272
liujuanjuan1984 merged 1 commit into
mainfrom
issue/258-web-api-http-tests

Conversation

@liujuanjuan1984

Copy link
Copy Markdown
Collaborator

变更内容

  • 新增 tests/test_web_api_http.py:以 FastAPI TestClient 对隔离的临时 SQLite 数据库执行真实 HTTP 往返测试,覆盖 health、vision/task 创建-列表-详情-404、note 创建-列表-删除、422 参数校验与 400 业务错误映射。
  • dev 依赖新增 httpx>=0.27,<1.0(TestClient 需要),并更新 uv.lock

验证

  • bash ./scripts/doctor.sh:通过(测试、lint、dead-code、mypy、依赖漏洞审计、package build;PostgreSQL CLI 集成测试按环境跳过)。

相关

Closes #258

test(web): add end-to-end HTTP integration tests for Web API endpoints
@liujuanjuan1984
liujuanjuan1984 merged commit e242086 into main Aug 7, 2026
5 checks passed
@liujuanjuan1984
liujuanjuan1984 deleted the issue/258-web-api-http-tests branch August 7, 2026 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

为 Web API endpoint 补齐端到端 HTTP 集成测试(TestClient/httpx)

1 participant