Skip to content

test: cover healthcheck harness tool - #25

Merged
Anai-Guo merged 1 commit into
mainfrom
chore/auto-maint-2026-09-25
Sep 26, 2026
Merged

Anai-Guo merged 1 commit into
mainfrom
chore/auto-maint-2026-09-25

Conversation

@Anai-Guo

Copy link
Copy Markdown
Owner

自动维护改动

类型:维护(测试覆盖)
改动:为 harness/tools/health_tool.py 新增 tests/test_health_tool.py(7 个用例),用桩替换 PyVISA / Settings.load / MemoryStore,覆盖全部通过、pyvisa 未安装、VISA 后端报错、仅 base_url 视为已配置 LLM、缺少凭据、配置加载异常、记忆库异常等分支;不需要仪器、API key,也不在工作目录写数据库。
测试:通过(新增 7 passed;全量 390 passed / 1 skipped;ruff check + format 通过)
参考:无

本 PR 由每日维护任务生成,请人工 review 后再合并。

🤖 Generated with Claude Code

health_tool.py had no dedicated tests. Add 7 cases that stub PyVISA,
Settings.load and MemoryStore so every branch (pass, ImportError, backend
error, base_url-only LLM, missing credentials, settings error, memory store
error) is exercised without instruments, API keys or writing a database
into the working tree.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Anai-Guo
Anai-Guo merged commit 7c7eeb7 into main Sep 26, 2026
3 checks passed
@Anai-Guo
Anai-Guo deleted the chore/auto-maint-2026-09-25 branch September 26, 2026 10:29
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.

1 participant