Home / File/ test_standard.py — langchain Source File

test_standard.py — langchain Source File

Architecture documentation for test_standard.py, a python file in the langchain codebase. 3 imports, 0 dependents.

File python CoreAbstractions MessageSchema 3 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  bcd5f4aa_777c_e86e_7c20_3e5faa4fe97b["test_standard.py"]
  120e2591_3e15_b895_72b6_cb26195e40a6["pytest"]
  bcd5f4aa_777c_e86e_7c20_3e5faa4fe97b --> 120e2591_3e15_b895_72b6_cb26195e40a6
  e85cc09a_55c8_b775_4454_f3a6771761b9["pytest_benchmark.fixture"]
  bcd5f4aa_777c_e86e_7c20_3e5faa4fe97b --> e85cc09a_55c8_b775_4454_f3a6771761b9
  a6947a84_a966_127d_d3a6_ed52b7ab3656["langchain_exa"]
  bcd5f4aa_777c_e86e_7c20_3e5faa4fe97b --> a6947a84_a966_127d_d3a6_ed52b7ab3656
  style bcd5f4aa_777c_e86e_7c20_3e5faa4fe97b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"""Standard unit tests for ExaSearchRetriever."""

import pytest
from pytest_benchmark.fixture import BenchmarkFixture  # type: ignore[import-untyped]

from langchain_exa import ExaSearchRetriever


@pytest.mark.benchmark
def test_exa_retriever_init_time(benchmark: BenchmarkFixture) -> None:
    """Test ExaSearchRetriever initialization time."""

    def _init_exa_retriever() -> None:
        for _ in range(10):
            ExaSearchRetriever()

    benchmark(_init_exa_retriever)

Subdomains

Dependencies

  • langchain_exa
  • pytest
  • pytest_benchmark.fixture

Frequently Asked Questions

What does test_standard.py do?
test_standard.py is a source file in the langchain codebase, written in python. It belongs to the CoreAbstractions domain, MessageSchema subdomain.
What functions are defined in test_standard.py?
test_standard.py defines 1 function(s): test_exa_retriever_init_time.
What does test_standard.py depend on?
test_standard.py imports 3 module(s): langchain_exa, pytest, pytest_benchmark.fixture.
Where is test_standard.py in the architecture?
test_standard.py is located at libs/partners/exa/tests/unit_tests/test_standard.py (domain: CoreAbstractions, subdomain: MessageSchema, directory: libs/partners/exa/tests/unit_tests).

Analyze Your Own Codebase

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

Try Supermodel Free