diff --git a/e2e/preview/components/test_whisper_local.py b/e2e/preview/components/test_whisper_local.py index a097e225e..6c7e80613 100644 --- a/e2e/preview/components/test_whisper_local.py +++ b/e2e/preview/components/test_whisper_local.py @@ -14,14 +14,14 @@ def test_whisper_local_transcriber(preview_samples_path): docs = output["documents"] assert len(docs) == 3 - assert "this is the content of the document." == docs[0].content.strip().lower() + assert "this is the content of the document." == docs[0].text.strip().lower() assert preview_samples_path / "audio" / "this is the content of the document.wav" == docs[0].metadata["audio_file"] - assert "the context for this answer is here." == docs[1].content.strip().lower() + assert "the context for this answer is here." == docs[1].text.strip().lower() assert ( str((preview_samples_path / "audio" / "the context for this answer is here.wav").absolute()) == docs[1].metadata["audio_file"] ) - assert "answer." == docs[2].content.strip().lower() + assert "answer." == docs[2].text.strip().lower() assert "<>" == docs[2].metadata["audio_file"] diff --git a/e2e/preview/components/test_whisper_remote.py b/e2e/preview/components/test_whisper_remote.py index 83d9d45c2..673f80b17 100644 --- a/e2e/preview/components/test_whisper_remote.py +++ b/e2e/preview/components/test_whisper_remote.py @@ -22,14 +22,14 @@ def test_whisper_remote_transcriber(preview_samples_path): docs = output["documents"] assert len(docs) == 3 - assert "this is the content of the document." == docs[0].content.strip().lower() + assert "this is the content of the document." == docs[0].text.strip().lower() assert preview_samples_path / "audio" / "this is the content of the document.wav" == docs[0].metadata["audio_file"] - assert "the context for this answer is here." == docs[1].content.strip().lower() + assert "the context for this answer is here." == docs[1].text.strip().lower() assert ( str((preview_samples_path / "audio" / "the context for this answer is here.wav").absolute()) == docs[1].metadata["audio_file"] ) - assert "answer." == docs[2].content.strip().lower() + assert "answer." == docs[2].text.strip().lower() assert "<>" == docs[2].metadata["audio_file"]