Repository navigation
test: cover Analyzer AI paths and pipeline fallbacks - #39
Merged
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
自动维护改动
类型:维护
改动:新增 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