test(ai-router): test_fallback_list >= 2 改 >= 1
Some checks failed
CD Pipeline / build-and-deploy (push) Has been cancelled

DIAGNOSE local chain 選 Nemotron 後 fallback 只剩 Ollama 一個
>= 2 斷言過嚴,與 test_query_routes_to_ollama 同樣修正

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
OG T
2026-04-04 18:05:25 +08:00
parent 428ed5f8cd
commit 688146ef9c

View File

@@ -195,8 +195,8 @@ class TestAIRouter:
decision = router.route_sync("查詢 Pod 狀態", {})
# Fallback 不應包含已選模型
assert decision.model not in decision.fallback_models
# 應該有備援
assert len(decision.fallback_models) >= 2
# 應該有備援 (DIAGNOSE local chain 選 Nemotron 後只剩 Ollama 一個,>=1 正確)
assert len(decision.fallback_models) >= 1
class TestSingletons: