mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/jxxghp/MoviePilot.git
synced 2026-09-20 08:03:34 +08:00
test(agent): 修正运行时配置注入路径
This commit is contained in:
@@ -258,7 +258,7 @@ def test_create_agent_config_uses_llm_max_iterations():
|
||||
|
||||
agent._create_agent = _create_agent
|
||||
agent.stream_handler.stop_streaming = lambda: asyncio.sleep(0, result=(False, ""))
|
||||
with patch("app.agent.orchestrator.settings.LLM_MAX_ITERATIONS", 7):
|
||||
with patch("app.agent.orchestrator.get_runtime_setting", return_value=7):
|
||||
await agent._execute_agent([])
|
||||
return fake_agent.config
|
||||
|
||||
|
||||
Reference in New Issue
Block a user