community: move test to integration tests (#23178)

Tests failing on master with

> FAILED
tests/unit_tests/embeddings/test_ovhcloud.py::test_ovhcloud_embed_documents
- ValueError: Request failed with status code: 401, {"message":"Bad
token; invalid JSON"}
This commit is contained in:
ccurme 2024-06-19 10:39:48 -04:00 committed by GitHub
parent 4fe8403bfb
commit ca798bc6ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 7 deletions

View File

@ -0,0 +1,8 @@
from langchain_community.embeddings.ovhcloud import OVHCloudEmbeddings
def test_ovhcloud_embed_documents() -> None:
llm = OVHCloudEmbeddings(model_name="multilingual-e5-base")
docs = ["Hello", "World"]
output = llm.embed_documents(docs)
assert len(output) == len(docs)

View File

@ -23,10 +23,3 @@ def test_ovhcloud_empty_access_token_should_not_raise_error() -> None:
model_name="multilingual-e5-base", region="kepler", access_token="" model_name="multilingual-e5-base", region="kepler", access_token=""
) )
assert isinstance(llm, OVHCloudEmbeddings) assert isinstance(llm, OVHCloudEmbeddings)
def test_ovhcloud_embed_documents() -> None:
llm = OVHCloudEmbeddings(model_name="multilingual-e5-base")
docs = ["Hello", "World"]
output = llm.embed_documents(docs)
assert len(output) == len(docs)