Home / Function/ test_import_from_deprecated_path() — langchain Function Reference

test_import_from_deprecated_path() — langchain Function Reference

Architecture documentation for the test_import_from_deprecated_path() function in test_importing.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  1a722b03_ada2_d968_a73b_ff66c9b958ae["test_import_from_deprecated_path()"]
  b6ceeb4b_20ea_e7cf_cb93_cb6a0f59e71e["test_importing.py"]
  1a722b03_ada2_d968_a73b_ff66c9b958ae -->|defined in| b6ceeb4b_20ea_e7cf_cb93_cb6a0f59e71e
  style 1a722b03_ada2_d968_a73b_ff66c9b958ae fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/tests/unit_tests/_api/test_importing.py lines 16–26

def test_import_from_deprecated_path() -> None:
    """Test importing all modules in langchain."""
    module_lookup = {
        "Document": "langchain_core.documents",
    }
    lookup = create_importer(__package__, deprecated_lookups=module_lookup)
    imported_doc = lookup("Document")

    from langchain_core.documents import Document

    assert imported_doc is Document

Domain

Subdomains

Frequently Asked Questions

What does test_import_from_deprecated_path() do?
test_import_from_deprecated_path() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/_api/test_importing.py.
Where is test_import_from_deprecated_path() defined?
test_import_from_deprecated_path() is defined in libs/langchain/tests/unit_tests/_api/test_importing.py at line 16.

Analyze Your Own Codebase

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

Try Supermodel Free