Home / Function/ test_importable_all() — langchain Function Reference

test_importable_all() — langchain Function Reference

Architecture documentation for the test_importable_all() function in test_imports.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  17e25f70_f488_fb00_48ef_bf55ab0fcee7["test_importable_all()"]
  9facfe9c_3d96_0e99_01dc_62f4bbfd8a09["test_imports.py"]
  17e25f70_f488_fb00_48ef_bf55ab0fcee7 -->|defined in| 9facfe9c_3d96_0e99_01dc_62f4bbfd8a09
  style 17e25f70_f488_fb00_48ef_bf55ab0fcee7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/test_imports.py lines 7–18

def test_importable_all() -> None:
    for path in Path("../core/langchain_core/").glob("*"):
        module_name = path.stem
        if (
            not module_name.startswith(".")
            and path.suffix != ".typed"
            and module_name != "pydantic_v1"
        ):
            module = importlib.import_module("langchain_core." + module_name)
            all_ = getattr(module, "__all__", [])
            for cls_ in all_:
                getattr(module, cls_)

Domain

Subdomains

Frequently Asked Questions

What does test_importable_all() do?
test_importable_all() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/test_imports.py.
Where is test_importable_all() defined?
test_importable_all() is defined in libs/core/tests/unit_tests/test_imports.py at line 7.

Analyze Your Own Codebase

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

Try Supermodel Free