test_required_dependencies() — langchain Function Reference
Architecture documentation for the test_required_dependencies() function in test_dependencies.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD fa7ff5e8_2821_9967_0f8c_ff570bd2ae29["test_required_dependencies()"] 19ba0025_6dcf_3502_80e9_ed75a1ebe912["test_dependencies.py"] fa7ff5e8_2821_9967_0f8c_ff570bd2ae29 -->|defined in| 19ba0025_6dcf_3502_80e9_ed75a1ebe912 style fa7ff5e8_2821_9967_0f8c_ff570bd2ae29 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/test_dependencies.py lines 23–44
def test_required_dependencies(uv_conf: Mapping[str, Any]) -> None:
"""A test that checks if a new non-optional dependency is being introduced.
If this test is triggered, it means that a contributor is trying to introduce a new
required dependency. This should be avoided in most situations.
"""
# Get the dependencies from the [tool.poetry.dependencies] section
dependencies = uv_conf["project"]["dependencies"]
required_dependencies = {Requirement(dep).name for dep in dependencies}
assert sorted(required_dependencies) == sorted(
[
"PyYAML",
"SQLAlchemy",
"async-timeout",
"langchain-core",
"langchain-text-splitters",
"langsmith",
"pydantic",
"requests",
],
)
Domain
Subdomains
Source
Frequently Asked Questions
What does test_required_dependencies() do?
test_required_dependencies() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/test_dependencies.py.
Where is test_required_dependencies() defined?
test_required_dependencies() is defined in libs/langchain/tests/unit_tests/test_dependencies.py at line 23.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free