test_mistralai_embedding_documents_http_error_async() — langchain Function Reference
Architecture documentation for the test_mistralai_embedding_documents_http_error_async() function in test_embeddings.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 8bb054e5_ee15_1905_ea20_05e28719644f["test_mistralai_embedding_documents_http_error_async()"] 92d013b2_fa85_724e_8abf_3543e9326d00["test_embeddings.py"] 8bb054e5_ee15_1905_ea20_05e28719644f -->|defined in| 92d013b2_fa85_724e_8abf_3543e9326d00 style 8bb054e5_ee15_1905_ea20_05e28719644f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/mistralai/tests/integration_tests/test_embeddings.py lines 53–65
async def test_mistralai_embedding_documents_http_error_async() -> None:
"""Test MistralAI embeddings for documents."""
documents = ["foo bar", "test document"]
embedding = MistralAIEmbeddings(max_retries=None)
mock_response = httpx.Response(
status_code=400,
request=httpx.Request("POST", url=embedding.async_client.base_url),
)
with (
patch.object(embedding.async_client, "post", return_value=mock_response),
pytest.raises(httpx.HTTPStatusError),
):
await embedding.aembed_documents(documents)
Domain
Subdomains
Source
Frequently Asked Questions
What does test_mistralai_embedding_documents_http_error_async() do?
test_mistralai_embedding_documents_http_error_async() is a function in the langchain codebase, defined in libs/partners/mistralai/tests/integration_tests/test_embeddings.py.
Where is test_mistralai_embedding_documents_http_error_async() defined?
test_mistralai_embedding_documents_http_error_async() is defined in libs/partners/mistralai/tests/integration_tests/test_embeddings.py at line 53.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free