From 02ecc5aeeabfe0a60c1d61fc9c43b221c7c4b7eb Mon Sep 17 00:00:00 2001 From: nesquena-hermes Date: Mon, 11 May 2026 23:14:20 +0000 Subject: [PATCH] fix(tests): provide LOCALES on TestVoiceModePreferenceGate PR #2067 made TestVoiceModePreferenceGate.test_settings_pane_has_voice_mode_i18n_keys adaptive via self.LOCALES but only defined LOCALES on the sibling class TestComposerVoiceButtonI18n. AttributeError on CI. Mirror the tuple to TestVoiceModePreferenceGate so the count assert resolves to 10 with Italian present. Co-authored-by: Samuel Gudi --- tests/test_issue1488_composer_voice_buttons.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_issue1488_composer_voice_buttons.py b/tests/test_issue1488_composer_voice_buttons.py index 3f37ddbd..787bf8a8 100644 --- a/tests/test_issue1488_composer_voice_buttons.py +++ b/tests/test_issue1488_composer_voice_buttons.py @@ -171,6 +171,8 @@ class TestComposerVoiceButtonI18n: class TestVoiceModePreferenceGate: """boot.js must hide btnVoiceMode by default, surface it via Preferences.""" + LOCALES = ("en", "it", "ja", "ru", "es", "de", "zh", "zh-Hant", "pt", "ko") + def test_voice_mode_pref_is_localstorage_backed(self): """The pref reads from localStorage key 'hermes-voice-mode-button'.""" src = _src("boot.js")