Home / Function/ test_create_lc_store() — langchain Function Reference

test_create_lc_store() — langchain Function Reference

Architecture documentation for the test_create_lc_store() function in test_lc_store.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  d3e9bd15_73c6_3824_f52b_b86706882130["test_create_lc_store()"]
  bc75f51c_2251_f277_f00a_4fb8c7746416["test_lc_store.py"]
  d3e9bd15_73c6_3824_f52b_b86706882130 -->|defined in| bc75f51c_2251_f277_f00a_4fb8c7746416
  style d3e9bd15_73c6_3824_f52b_b86706882130 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/tests/unit_tests/storage/test_lc_store.py lines 21–27

def test_create_lc_store(file_store: LocalFileStore) -> None:
    """Test that a docstore is created from a base store."""
    docstore = create_lc_store(file_store)
    docstore.mset([("key1", Document(page_content="hello", metadata={"key": "value"}))])
    fetched_doc = cast("Document", docstore.mget(["key1"])[0])
    assert fetched_doc.page_content == "hello"
    assert fetched_doc.metadata == {"key": "value"}

Domain

Subdomains

Frequently Asked Questions

What does test_create_lc_store() do?
test_create_lc_store() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/storage/test_lc_store.py.
Where is test_create_lc_store() defined?
test_create_lc_store() is defined in libs/langchain/tests/unit_tests/storage/test_lc_store.py at line 21.

Analyze Your Own Codebase

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

Try Supermodel Free