diff --git a/test/unittests/test_tts.py b/test/unittests/test_tts.py index 07cf377d..6891f42b 100644 --- a/test/unittests/test_tts.py +++ b/test/unittests/test_tts.py @@ -393,11 +393,4 @@ def test_play_args_from_tts_config(self): self.assertEqual(tts_callbacks.play_args, ["vlc"]) def test_play_args_from_default_config(self): - environ["OVOS_CONFIG_BASE_FOLDER"] = "mycroft" - environ["OVOS_CONFIG_FILENAME"] = "test.conf" - os.makedirs(f"{os.path.expanduser('~')}/.config/mycroft", exist_ok=True) - with open(f"{os.path.expanduser('~')}/.config/mycroft/test.conf", "w", encoding="utf-8") as f: - f.write('{"play_wav_cmdline": "afplay %1"}') - tts_callbacks = StreamingTTSCallbacks(FakeBus(), None) - self.assertEqual(tts_callbacks.play_args, ["afplay"]) - os.remove(f"{os.path.expanduser('~')}/.config/mycroft/test.conf") + # TODO: Mock out a config XDG location and set play_wav_cmdline, validate that it is used