Home / Function/ test_default_aload() — langchain Function Reference

test_default_aload() — langchain Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

libs/core/tests/unit_tests/document_loaders/test_base.py lines 59–72

async def test_default_aload() -> None:
    class FakeLoader(BaseLoader):
        @override
        def lazy_load(self) -> Iterator[Document]:
            yield from [
                Document(page_content="foo"),
                Document(page_content="bar"),
            ]

    loader = FakeLoader()
    docs = loader.load()
    assert docs == [Document(page_content="foo"), Document(page_content="bar")]
    assert docs == [doc async for doc in loader.alazy_load()]
    assert docs == await loader.aload()

Subdomains

Frequently Asked Questions

What does test_default_aload() do?
test_default_aload() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/document_loaders/test_base.py.
Where is test_default_aload() defined?
test_default_aload() is defined in libs/core/tests/unit_tests/document_loaders/test_base.py at line 59.
What does test_default_aload() call?
test_default_aload() 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