Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@

load_dotenv()


def pytest_collection_modifyitems(items):
"""Mark all integration tests as flaky with auto-retry."""
for item in items:
# Check if test is in the integration directory
if "integration" in str(item.fspath):
item.add_marker(pytest.mark.flaky(reruns=9, reruns_delay=1))


# Create output directory for test audio files
OUTPUT_DIR = Path("output")
OUTPUT_DIR.mkdir(exist_ok=True)
Expand Down
2 changes: 0 additions & 2 deletions tests/integration/test_tts_websocket_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ def text_stream():
# Save the audio
save_audio(audio_chunks, "test_websocket_streaming.mp3")

@pytest.mark.flaky(reruns=9, reruns_delay=1)
@pytest.mark.parametrize(
"model",
[
Expand Down Expand Up @@ -226,7 +225,6 @@ async def text_stream():
save_audio(audio_chunks, "test_async_websocket_streaming.mp3")

@pytest.mark.asyncio
@pytest.mark.flaky(reruns=9, reruns_delay=1)
@pytest.mark.parametrize(
"model",
[
Expand Down