Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Apr 20, 2024
1 parent f02f320 commit 094a541
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unittests/test_tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,13 +280,13 @@ def test_tts_context_get_cache(self, cache_mock):

class TestTTSCache(unittest.TestCase):
def setUp(self):
self.tts_mock = TTS(lang="en-us", config={"some_config_key": "some_config_value"})
self.tts_mock = TTS(config={"some_config_key": "some_config_value"})
self.tts_mock.stopwatch = MagicMock()
self.tts_mock.queue = MagicMock()
self.tts_mock.playback = MagicMock()

@patch("ovos_plugin_manager.templates.tts.hash_sentence", return_value="fake_hash")
@patch("ovos_plugin_manager.templates.tts.TTSContext", autospec=True)
@patch("ovos_plugin_manager.templates.tts.TTSContext")
def test_tts_synth(self, tts_context_mock, hash_sentence_mock):
tts_context_mock.get_cache.return_value = MagicMock()
tts_context_mock.get_cache.return_value.define_audio_file.return_value.path = "fake_audio_path"
Expand Down

0 comments on commit 094a541

Please sign in to comment.