diff --git a/tests/test_plugin_endpoint.py b/tests/test_plugin_endpoint.py index 8c3e76e4d..dc2c19dec 100644 --- a/tests/test_plugin_endpoint.py +++ b/tests/test_plugin_endpoint.py @@ -1012,7 +1012,7 @@ def test_sync_plugin_market_from_wiki_merges_and_deduplicates_repos(): return_value=request_utils, ), patch( - "app.startup.composition.system.eventmanager.async_send_event", + "app.startup.composition.system.eventmanager.async_send_event_strict", new=AsyncMock(), ) as send_event, ): diff --git a/tests/test_system_llm_web_search_config.py b/tests/test_system_llm_web_search_config.py index e32780489..741215e8b 100644 --- a/tests/test_system_llm_web_search_config.py +++ b/tests/test_system_llm_web_search_config.py @@ -64,7 +64,7 @@ def test_set_env_accepts_supported_deepseek_builtin_web_search() -> None: "update_settings", return_value={key: (True, None) for key in env}, ) as update_settings, patch( - "app.startup.composition.system.eventmanager.async_send_event" + "app.startup.composition.system.eventmanager.async_send_event_strict" ): response = asyncio.run( system_endpoint.set_env_setting(env=env, _=object(), runtime=_runtime())