Fix test: align remote.mode in no-reload settings test
The default remote.mode changed from 'local' to 'byok', causing the apply_settings test to detect a mode mismatch and trigger an unexpected engine reload. Pin remote.mode to 'local' in the test to match the controller's assumed current mode. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -125,6 +125,8 @@ def test_apply_settings_no_reload_when_same(controller):
|
||||
# Ensure config returns the same values
|
||||
controller.config.set("transcription.model", "base.en")
|
||||
controller.config.set("transcription.device", "auto")
|
||||
# Remote mode must also match (no engine means current mode is 'local')
|
||||
controller.config.set("remote.mode", "local")
|
||||
|
||||
controller.reload_engine = MagicMock(return_value=(True, "reloaded"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user