def test_get_options(self): expected_result = Options( recognizer_multiplier=1.0, recognizer_energy_ratio=1.5, recognizer_recording_timeout=15.0, recognizer_recording_timeout_with_silence=3.0, deaf=True, mute=False) sl = SettingLoader(file_path=self.settings_file_to_test) self.assertEqual(expected_result, sl._get_options(self.settings_dict))
def test_get_options(self): expected_result = Options(energy_threshold=3000, deaf=True, mute=False) sl = SettingLoader(file_path=self.settings_file_to_test) self.assertEqual(expected_result, sl._get_options(self.settings_dict))