mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-07 08:26:53 +08:00
refactor: unify service configuration boundary
This commit is contained in:
@@ -454,7 +454,7 @@ def test_channel_primary_id_defaults_to_admin_without_admin_list():
|
||||
)
|
||||
|
||||
with patch(
|
||||
"app.agent.tools.base.ServiceConfigHelper.get_notification_configs",
|
||||
"app.agent.tools.base.get_notification_configs",
|
||||
return_value=[
|
||||
SimpleNamespace(
|
||||
name="telegram-main",
|
||||
@@ -477,7 +477,7 @@ def test_channel_primary_id_mismatch_remains_non_admin():
|
||||
)
|
||||
|
||||
with patch(
|
||||
"app.agent.tools.base.ServiceConfigHelper.get_notification_configs",
|
||||
"app.agent.tools.base.get_notification_configs",
|
||||
return_value=[
|
||||
SimpleNamespace(
|
||||
name="telegram-main",
|
||||
@@ -500,7 +500,7 @@ def test_feishu_primary_open_id_defaults_to_admin():
|
||||
)
|
||||
|
||||
with patch(
|
||||
"app.agent.tools.base.ServiceConfigHelper.get_notification_configs",
|
||||
"app.agent.tools.base.get_notification_configs",
|
||||
return_value=[
|
||||
SimpleNamespace(
|
||||
name="feishu-main",
|
||||
@@ -523,7 +523,7 @@ def test_channel_primary_id_still_prefers_admin_list():
|
||||
)
|
||||
|
||||
with patch(
|
||||
"app.agent.tools.base.ServiceConfigHelper.get_notification_configs",
|
||||
"app.agent.tools.base.get_notification_configs",
|
||||
return_value=[
|
||||
SimpleNamespace(
|
||||
name="telegram-main",
|
||||
|
||||
Reference in New Issue
Block a user