test: Fix audio tests failing (#4418)

* Fix audio tests failing

* Disable local whisper tests
This commit is contained in:
Silvano Cerza 2023-03-15 15:26:30 +01:00 committed by GitHub
parent 2c7c4aa04e
commit b3a659cd4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -151,6 +151,7 @@ audio = [
"pyworld<0.3.1; python_version < '3.8'",
"ffmpeg-python==0.2.0",
"espnet",
"typeguard==2.13.3",
"espnet-model-zoo",
"pydub",
"protobuf<=3.20.1",

View File

@ -23,6 +23,7 @@ def test_whisper_api_transcribe_with_params():
assert "segments" not in audio_object_transcript and "segments" not in audio_path_transcript
@pytest.mark.skip("Fails on CI cause it fills up memory")
@pytest.mark.integration
@pytest.mark.skipif(not is_whisper_available(), reason="Whisper is not installed")
def test_whisper_local_transcribe():
@ -31,6 +32,7 @@ def test_whisper_local_transcribe():
assert "segments" not in audio_object_transcript and "segments" not in audio_path_transcript
@pytest.mark.skip("Fails on CI cause it fills up memory")
@pytest.mark.integration
@pytest.mark.skipif(not is_whisper_available(), reason="Whisper is not installed")
def test_whisper_local_transcribe_with_params():