Skip to content

Commit 7a3f2d2

Browse files
committed
more test cleanup
1 parent ad7f4fe commit 7a3f2d2

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

plugins/fish/tests/test_fish_stt.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ async def test_transcribe_mia_audio(self, stt, mia_audio_16khz):
3232
assert not session.errors
3333

3434
# Verify transcript
35-
assert len(session.transcripts) > 0, "Expected at least one transcript"
36-
transcript_event = session.transcripts[0]
37-
assert "forgotten treasures" in transcript_event.text.lower()
35+
full_transcript = session.get_full_transcript()
36+
assert "forgotten treasures" in full_transcript.lower()
3837

3938
@pytest.mark.integration
4039
async def test_transcribe_mia_audio_48khz(self, stt, mia_audio_48khz):
@@ -49,6 +48,5 @@ async def test_transcribe_mia_audio_48khz(self, stt, mia_audio_48khz):
4948
assert not session.errors
5049

5150
# Verify transcript
52-
assert len(session.transcripts) > 0, "Expected at least one transcript"
53-
transcript_event = session.transcripts[0]
54-
assert "forgotten treasures" in transcript_event.text.lower()
51+
full_transcript = session.get_full_transcript()
52+
assert "forgotten treasures" in full_transcript.lower()

0 commit comments

Comments
 (0)