test(api): 补召回 SSE 错误码与 /llm 缺配置 404 路由出口测试#141
Merged
Conversation
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.
Summary
feature-completion-audit对 feat(llm): 统一用户模型解析层 + 召回侧改用用户 embedding 模型 #136 判定的两处 Required 测试缺口,使该 feature 在 dev 上达到 COMPLETE。Changes
tests/unit/api/test_recall_route.py:新增test_embedding_config_missing_emits_sse_error—— pipeline 抛RecallFatalError→ SSEerror事件返回RECALL_EMBEDDING_CONFIG_MISSING(硬失败不降级)。这是方案明列的"召回路由错误码映射"单测项。tests/unit/api/test_llm_route_coercion.py:新增test_resolve_provider_missing_config_maps_to_404——_resolve_provider在统一解析未命中(含系统兜底)时抛UserModelConfigMissingError→ HTTP 404,锁定/llm端点原有对外契约。Tests
pytest tests/unit/api/test_recall_route.py tests/unit/api/test_llm_route_coercion.py -q→ 37 passedRisks
No known high-risk items(纯测试新增,基于当前 dev)。门槛自查