Skip to content

Commit 24fdfbb

Browse files
committed
fix pytest by adding mock return value
1 parent f2abd8f commit 24fdfbb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python/tests/test_functions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def setUpClass(cls):
2626
cls.mock_get_audio_duration = patch("python.word_generator.Audio.get_audio_duration").start()
2727
cls.mock_generate_srt_file = patch("python.word_generator.Audio.echogarden_generate_subtitles").start()
2828

29+
cls.mock_tts.return_value = ("local_path", "cloud_path")
2930
cls.mock_google_translator.return_value.translate.return_value = "Translated sentence"
3031
cls.audio = Audio(
3132
word_list_path="python/tests/test_word_list.txt",

0 commit comments

Comments
 (0)