From ee849562d42b14f8d210a8052b482fb4c57861e5 Mon Sep 17 00:00:00 2001 From: ftnext Date: Sat, 7 Dec 2024 12:55:16 +0900 Subject: [PATCH] [test] OpenAI provides whisper-1 only --- tests/recognizers/test_openai.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/recognizers/test_openai.py b/tests/recognizers/test_openai.py index 55135a4d..6b43f5d3 100644 --- a/tests/recognizers/test_openai.py +++ b/tests/recognizers/test_openai.py @@ -26,7 +26,8 @@ def test_transcribe_with_openai_whisper(respx_mock, monkeypatch): audio_data.get_wav_data.return_value = b"audio_data" actual = whisper.recognize_whisper_api( - MagicMock(spec=Recognizer), audio_data, model="whisper-1" + MagicMock(spec=Recognizer), audio_data ) assert actual == "Transcription by OpenAI Whisper" + audio_data.get_wav_data.assert_called_once()