refactor: 收口 V3 分层架构与插件兼容边界

This commit is contained in:
jxxghp
2026-08-18 13:22:02 +08:00
parent cca99bd421
commit 8472bcff43
274 changed files with 10730 additions and 6130 deletions
+2 -2
View File
@@ -853,7 +853,7 @@ def test_follow_preserves_album_entity_and_track_count():
system_config.get.return_value = ["follow-user"]
with patch("app.chain.subscribe.SubscribeOper", return_value=subscribe_oper), \
patch("app.chain.subscribe.SystemConfigOper", return_value=system_config), \
patch("app.chain.subscribe.get_configured_system_config", return_value=system_config), \
patch(
"app.chain.subscribe.MoviePilotServerHelper.get_subscribe_shares",
return_value=[share],
@@ -879,7 +879,7 @@ def test_refresh_enables_music_entry_fetch_when_music_subscribe_exists():
torrents_chain.refresh.return_value = {}
with patch("app.chain.subscribe.SubscribeOper", return_value=subscribe_oper), \
patch("app.chain.subscribe.SystemConfigOper") as system_config, \
patch("app.chain.subscribe.get_configured_system_config") as system_config, \
patch("app.chain.subscribe.TorrentsChain", return_value=torrents_chain):
system_config.return_value.get.return_value = []
chain.refresh()