Home / Function/ test_mistralai_embedding_documents_tenacity_error_async() — langchain Function Reference

test_mistralai_embedding_documents_tenacity_error_async() — langchain Function Reference

Architecture documentation for the test_mistralai_embedding_documents_tenacity_error_async() function in test_embeddings.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  c2fc6962_de8d_ef19_f1dc_67ee943490a6["test_mistralai_embedding_documents_tenacity_error_async()"]
  92d013b2_fa85_724e_8abf_3543e9326d00["test_embeddings.py"]
  c2fc6962_de8d_ef19_f1dc_67ee943490a6 -->|defined in| 92d013b2_fa85_724e_8abf_3543e9326d00
  style c2fc6962_de8d_ef19_f1dc_67ee943490a6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/mistralai/tests/integration_tests/test_embeddings.py lines 38–50

async def test_mistralai_embedding_documents_tenacity_error_async() -> None:
    """Test MistralAI embeddings for documents."""
    documents = ["foo bar", "test document"]
    embedding = MistralAIEmbeddings(max_retries=0)
    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(tenacity.RetryError),
    ):
        await embedding.aembed_documents(documents)

Domain

Subdomains

Frequently Asked Questions

What does test_mistralai_embedding_documents_tenacity_error_async() do?
test_mistralai_embedding_documents_tenacity_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_tenacity_error_async() defined?
test_mistralai_embedding_documents_tenacity_error_async() is defined in libs/partners/mistralai/tests/integration_tests/test_embeddings.py at line 38.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free