Skip to content

Commit

Permalink
one more towel
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejgray committed Jun 25, 2024
1 parent b9462ae commit 042dd4d
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions test/unittests/test_tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,11 +393,5 @@ 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
return

0 comments on commit 042dd4d

Please sign in to comment.