Skip to content

Commit 4486356

Browse files
committed
test: simplify TTS model testing by removing exception handling
1 parent f70ca97 commit 4486356

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

tests/integration/test_tts_integration.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,11 @@ def test_tts_with_different_models(self, client, save_audio):
5050
models = get_args(Model)
5151

5252
for model in models:
53-
try:
54-
audio = client.tts.convert(text=f"Testing model {model}", model=model)
55-
assert len(audio) > 0, f"Failed for model: {model}"
56-
57-
# Write to output directory
58-
save_audio(audio, f"test_model_{model}.mp3")
59-
except Exception as e:
60-
# Some models might not be available
61-
pytest.skip(f"Model {model} not available: {e}")
53+
audio = client.tts.convert(text=f"Testing model {model}", model=model)
54+
assert len(audio) > 0, f"Failed for model: {model}"
55+
56+
# Write to output directory
57+
save_audio(audio, f"test_model_{model}.mp3")
6258

6359
def test_tts_longer_text(self, client, save_audio):
6460
"""Test TTS with longer text."""

0 commit comments

Comments
 (0)