Skip to content

Commit b04c006

Browse files
committed
chore(deps): add pytest-rerunfailures for flaky test handling
1 parent 7316eec commit b04c006

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ dev = [
6060
"pytest>=8.3.5",
6161
"pytest-asyncio>=0.24.0",
6262
"pytest-cov>=5.0.0",
63+
"pytest-rerunfailures>=16.0.1",
6364
"python-dotenv>=1.0.1",
6465
"ruff>=0.14.3",
6566
]

tests/integration/test_tts_websocket_integration.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def text_stream():
3434
# Save the audio
3535
save_audio(audio_chunks, "test_websocket_streaming.mp3")
3636

37+
@pytest.mark.flaky(reruns=2, reruns_delay=1)
3738
def test_websocket_streaming_with_different_models(self, client, save_audio):
3839
"""Test WebSocket streaming with different models."""
3940
import time
@@ -219,6 +220,7 @@ async def text_stream():
219220
save_audio(audio_chunks, "test_async_websocket_streaming.mp3")
220221

221222
@pytest.mark.asyncio
223+
@pytest.mark.flaky(reruns=2, reruns_delay=1)
222224
async def test_async_websocket_streaming_with_different_models(
223225
self, async_client, save_audio
224226
):

uv.lock

Lines changed: 36 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)