test_standard.py — langchain Source File
Architecture documentation for test_standard.py, a python file in the langchain codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 05953f3a_01e5_c665_3f2b_4475ea5342c5["test_standard.py"] 120e2591_3e15_b895_72b6_cb26195e40a6["pytest"] 05953f3a_01e5_c665_3f2b_4475ea5342c5 --> 120e2591_3e15_b895_72b6_cb26195e40a6 e85cc09a_55c8_b775_4454_f3a6771761b9["pytest_benchmark.fixture"] 05953f3a_01e5_c665_3f2b_4475ea5342c5 --> e85cc09a_55c8_b775_4454_f3a6771761b9 bd50a943_703d_71fe_3e15_0c4e0ab9309a["langchain_nomic"] 05953f3a_01e5_c665_3f2b_4475ea5342c5 --> bd50a943_703d_71fe_3e15_0c4e0ab9309a style 05953f3a_01e5_c665_3f2b_4475ea5342c5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"""Unit tests for standard tests in Nomic partner integration."""
import pytest
from pytest_benchmark.fixture import BenchmarkFixture # type: ignore[import]
from langchain_nomic import NomicEmbeddings
@pytest.mark.benchmark
def test_nomic_embeddings_init_time(benchmark: BenchmarkFixture) -> None:
"""Test NomicEmbeddings initialization time."""
def _init_nomic_embeddings() -> None:
for _ in range(10):
NomicEmbeddings(model="test")
benchmark(_init_nomic_embeddings)
Domain
Subdomains
Functions
Dependencies
- langchain_nomic
- pytest
- pytest_benchmark.fixture
Source
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_nomic_embeddings_init_time.
What does test_standard.py depend on?
test_standard.py imports 3 module(s): langchain_nomic, pytest, pytest_benchmark.fixture.
Where is test_standard.py in the architecture?
test_standard.py is located at libs/partners/nomic/tests/unit_tests/test_standard.py (domain: CoreAbstractions, subdomain: MessageSchema, directory: libs/partners/nomic/tests/unit_tests).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free