test(provider): fold method presence check into invocation tests

This commit is contained in:
huanghuoguoguo
2026-10-17 15:18:01 +08:00
parent bcfe78aa0e
commit ce6465094e
@@ -247,16 +247,6 @@ def test_runtime_provider_initialization(runtime_provider, fake_persistence_data
assert isinstance(provider.requester, requester.ProviderAPIRequester)
def test_runtime_provider_has_invoke_methods(runtime_provider):
"""RuntimeProvider exposes callable invocation entrypoints."""
provider = runtime_provider
assert callable(provider.invoke_llm)
assert callable(provider.invoke_llm_stream)
assert callable(provider.invoke_embedding)
assert callable(provider.invoke_rerank)
@pytest.mark.asyncio
async def test_runtime_provider_invoke_llm_delegates(runtime_provider, runtime_llm_model):
"""Test RuntimeProvider.invoke_llm delegates to requester."""