You are here: Home / LBN / Up2date / Data Science / BastionLinux 36 / python3-langchain-tests-0.3.19-1.lbn36.noarch

python3-langchain-tests-0.3.19-1.lbn36.noarch

Package Attributes
RPM  python3-langchain-tests-0.3.19-1.lbn36.noarch.rpm Architecture  noarch Size  595694 Created  2025/05/13 02:04:21 UTC
Package Specification
Summary Standard tests for LangChain implementations
Group Unspecified
License ZPL
Home Page https://pypi.org/project/langchain-tests
Description

langchain-tests This is a testing library for LangChain integrations. It contains the base classes for a standard set of tests. Installation We encourage pinning your version to a specific version in order to avoid breaking your CI when we publish new tests. We recommend upgrading to the latest version periodically to make sure you have the latest tests. Not pinning your version will ensure you always have the latest tests, but it may also break your CI if we introduce tests that your integration doesn't pass. Pip: ```bash pip install -U langchain-tests ```

Poetry: ```bash poetry add langchain-tests ```

Usage To add standard tests to an integration package's e.g. ChatModel, you need to create

A unit test class that inherits from ChatModelUnitTests An integration test class that inherits from ChatModelIntegrationTests

tests/unit_tests/test_standard.py: """Standard LangChain interface tests"""

from typing import Type

import pytest from langchain_core.language_models import BaseChat

Requires
(python3.10dist(syrupy) < 5~~ with python3.10dist(syrupy) >= 4)  
(python3.10dist(pytest-socket) < 1~~ with python3.10dist(pytest-socket) >= 0.6)  
rpmlib(PayloadIsZstd)  
(python3.10dist(pytest) < 9~~ with python3.10dist(pytest) >= 7)  
(python3.10dist(langchain-core) < 1~~ with python3.10dist(langchain-core) >= 0.3.53)  
rpmlib(CompressedFileNames)  
rpmlib(PayloadFilesHavePrefix)  
(python3.10dist(httpx) < 1~~ with python3.10dist(httpx) >= 0.25)  
rpmlib(RichDependencies)  
rpmlib(PartialHardlinkSets)  
rpmlib(TildeInVersions)  
(python3.10dist(pytest-asyncio) < 1~~ with python3.10dist(pytest-asyncio) >= 0.20)  
rpmlib(FileDigests)  
Provides
python-langchain-tests
python3-langchain-tests
python3.10-langchain-tests
python3.10dist(langchain-tests)
python3dist(langchain-tests)
Obsoletes
python-langchain-tests

Document Actions