refactor: use explicit system config getter

This commit is contained in:
jxxghp
2026-08-24 04:04:35 +08:00
parent 4dd2d7fed2
commit 8555d0da3e
28 changed files with 111 additions and 76 deletions
+2 -2
View File
@@ -303,7 +303,7 @@ def test_install_plugin_runtime_reloads_in_threadpool() -> None:
with (
patch(
"app.agent.tools.impl._plugin_tool_utils.SystemConfigOper",
"app.agent.tools.impl._plugin_tool_utils.get_configured_system_config",
return_value=config_oper,
),
patch(
@@ -394,7 +394,7 @@ def test_sealed_agent_uninstall_rejects_before_persistence() -> None:
return_value=plugin_manager,
),
patch(
"app.agent.tools.impl._plugin_tool_utils.SystemConfigOper",
"app.agent.tools.impl._plugin_tool_utils.get_configured_system_config",
return_value=config_oper,
) as config_provider,
pytest.raises(PluginMutationRejectedError),