Home / Function/ test_default_lazy_load() — langchain Function Reference

test_default_lazy_load() — langchain Function Reference

Architecture documentation for the test_default_lazy_load() function in test_base.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  2394679e_8b6a_4a54_8cce_91f3a82dae9c["test_default_lazy_load()"]
  04353e17_7a2a_a42e_4595_1cfd1500c7e4["test_base.py"]
  2394679e_8b6a_4a54_8cce_91f3a82dae9c -->|defined in| 04353e17_7a2a_a42e_4595_1cfd1500c7e4
  d2c2ea77_a535_5a31_9133_38ec8e978d83["load()"]
  2394679e_8b6a_4a54_8cce_91f3a82dae9c -->|calls| d2c2ea77_a535_5a31_9133_38ec8e978d83
  dde81854_a56f_1480_10d2_d801516d412a["lazy_load()"]
  2394679e_8b6a_4a54_8cce_91f3a82dae9c -->|calls| dde81854_a56f_1480_10d2_d801516d412a
  style 2394679e_8b6a_4a54_8cce_91f3a82dae9c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/document_loaders/test_base.py lines 36–47

def test_default_lazy_load() -> None:
    class FakeLoader(BaseLoader):
        @override
        def load(self) -> list[Document]:
            return [
                Document(page_content="foo"),
                Document(page_content="bar"),
            ]

    loader = FakeLoader()
    docs = list(loader.lazy_load())
    assert docs == [Document(page_content="foo"), Document(page_content="bar")]

Subdomains

Frequently Asked Questions

What does test_default_lazy_load() do?
test_default_lazy_load() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/document_loaders/test_base.py.
Where is test_default_lazy_load() defined?
test_default_lazy_load() is defined in libs/core/tests/unit_tests/document_loaders/test_base.py at line 36.
What does test_default_lazy_load() call?
test_default_lazy_load() calls 2 function(s): lazy_load, load.

Analyze Your Own Codebase

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

Try Supermodel Free