refactor: complete runtime configuration migration

This commit is contained in:
jxxghp
2026-08-22 19:07:07 +08:00
parent d131f8d571
commit 1bb6e36e8c
80 changed files with 1432 additions and 581 deletions
+1 -2
View File
@@ -194,8 +194,7 @@ def test_plugin_first_keeps_fallback_when_help_unidentified(monkeypatch):
"name": "另一个晴天",
})
with patch("app.chain.media.eventmanager") as em, \
patch("app.chain.media.settings") as settings_mock:
settings_mock.RECOGNIZE_PLUGIN_FIRST = True
patch("app.runtime.config.settings.RECOGNIZE_PLUGIN_FIRST", True):
em.check.return_value = True
em.send_event.return_value = event
result = chain.recognize_by_meta(meta)