fix(test): 修复预存坏测试 test_llm_client_missing_base_url (#127 收尾)

_endpoint(base_url) 需显式传参, 原测试无参调用必 TypeError。
存量不追溯但顺手修复(1 行)。
This commit is contained in:
2026-09-16 17:51:06 +08:00
parent f3ec3ff53e
commit 5cb72c1817

View File

@@ -355,7 +355,7 @@ def test_llm_client_missing_base_url(monkeypatch):
"""未配置 base_url → LLMError(status=503)。"""
monkeypatch.setattr(settings, "LLM_BASE_URL", "")
with pytest.raises(llm_client.LLMError) as e:
llm_client._endpoint()
llm_client._endpoint("") # _endpoint(base_url) 需显式传参
assert e.value.status_code == 503