Home / Function/ test_test_group_dependencies() — langchain Function Reference

test_test_group_dependencies() — langchain Function Reference

Architecture documentation for the test_test_group_dependencies() function in test_dependencies.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  5d347a14_7924_79cd_5173_008f2cef94c5["test_test_group_dependencies()"]
  19ba0025_6dcf_3502_80e9_ed75a1ebe912["test_dependencies.py"]
  5d347a14_7924_79cd_5173_008f2cef94c5 -->|defined in| 19ba0025_6dcf_3502_80e9_ed75a1ebe912
  style 5d347a14_7924_79cd_5173_008f2cef94c5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/tests/unit_tests/test_dependencies.py lines 47–84

def test_test_group_dependencies(uv_conf: Mapping[str, Any]) -> None:
    """Check if someone is attempting to add additional test dependencies.

    Only dependencies associated with test running infrastructure should be added
    to the test group; e.g., pytest, pytest-cov etc.

    Examples of dependencies that should NOT be included: boto3, azure, postgres, etc.
    """
    dependencies = uv_conf["dependency-groups"]["test"]
    test_group_deps = {Requirement(dep).name for dep in dependencies}

    assert sorted(test_group_deps) == sorted(
        [
            "freezegun",
            "langchain-core",
            "langchain-tests",
            "langchain-text-splitters",
            "langchain-openai",
            "lark",
            "packaging",
            "pandas",
            "pytest",
            "pytest-asyncio",
            "pytest-cov",
            "pytest-dotenv",
            "pytest-mock",
            "pytest-socket",
            "pytest-watcher",
            "pytest-xdist",
            "responses",
            "syrupy",
            "toml",
            "requests-mock",
            # TODO: temporary hack since cffi 1.17.1 doesn't work with py 3.9.
            "cffi",
            "numpy",
        ],
    )

Domain

Subdomains

Frequently Asked Questions

What does test_test_group_dependencies() do?
test_test_group_dependencies() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/test_dependencies.py.
Where is test_test_group_dependencies() defined?
test_test_group_dependencies() is defined in libs/langchain/tests/unit_tests/test_dependencies.py at line 47.

Analyze Your Own Codebase

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

Try Supermodel Free