Skip to content

test: cover Analyzer AI paths and pipeline fallbacks - #39

Merged
Anai-Guo merged 1 commit into
mainfrom
chore/auto-maint-2026-10-09
Oct 10, 2026
Merged

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

Conversation

@Anai-Guo

@Anai-Guo Anai-Guo commented Oct 9, 2026

Copy link
Copy Markdown
Owner

自动维护改动

类型:维护
改动:新增 tests/test_analyzer_ai_paths.py 12 个单元测试,覆盖 analyzer.py 的数据预览、LLM 脚本生成(无凭据回退/围栏剥离/自定义指令)、interpret_results 的数据预览与仅年份引用分支、run_script 失败分支、analyze() 的 use_ai 与模板缺失回退;模块覆盖率 70%→100%,全量 467 passed。
测试:通过
参考:无

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

🤖 Generated with Claude Code

…llbacks

analyzer.py sat at 70% with its LLM script generation, data preview,
year-only citation, script-failure and analyze() fallback branches
untested. Add 12 focused unit tests that stub Settings/LLMRouter so no
network or real LLM is needed, bringing the module to full coverage.

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