{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/6"},{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/2"}],"enrichment":{"capability":"Provides standard test base classes and fixtures for validating LangChain integration implementations, particularly chat models, against a shared interface contract.","skillfed_tags":["langchain-ecosystem","integration-testing","pytest-plugin"],"use_cases":["Validate a custom chat model integration against LangChain's standard interface before publishing.","Ensure a third-party LLM provider integration passes unit and integration tests in CI/CD.","Add deterministic, recorded HTTP tests to an integration using pytest-recording and vcrpy.","Benchmark performance of a chat model integration with pytest-benchmark fixtures.","Test tool-calling and structured-output capabilities of a chat model implementation."],"what_it_does":"langchain-tests is a testing library that provides standardized test base classes and fixtures for validating LangChain integrations. It defines unit and integration test templates (e.g., ChatModelUnitTests, ChatModelIntegrationTests) that integration authors inherit from to ensure their implementations conform to LangChain's standard interfaces. The library bundles pytest plugins (pytest-asyncio, pytest-benchmark, pytest-recording, pytest-socket, vcrpy) and assertion tools (syrupy) to support deterministic, isolated testing.\n\nIntegration packages use langchain-tests by creating test classes that inherit from the appropriate base and configure fixtures like chat_model_class and optional parameters such as tool-calling and structured-output capabilities. The library is actively maintained by the LangChain team and released frequently; the documentation explicitly recommends pinning to a specific version in CI to prevent unexpected test failures when new tests are introduced.","worth_installing":"Yes, if you are developing a LangChain integration (chat model, retriever, or other component). It provides the canonical test suite and fixtures the LangChain ecosystem expects, with low install friction and active maintenance. Not relevant for end users of LangChain who are not building integrations. Pin the version in your CI to avoid unexpected test additions breaking your pipeline."},"id":"langchain-tests","links":{"html":"https://skillfed.io/packages/langchain-tests","md":"https://skillfed.io/packages/langchain-tests.md","pypi":"https://pypi.org/project/langchain-tests/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-05-21","license_spdx":null,"license_treatment":"permissive","name":"langchain-tests","python_support":"supports_current","summary":"Standard tests for LangChain implementations"},"popularity":{"monthly_downloads":1969745,"position":3400,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.1.9"}
