Home / Function/ test_passthrough_transform_with_dicts() — langchain Function Reference

test_passthrough_transform_with_dicts() — langchain Function Reference

Architecture documentation for the test_passthrough_transform_with_dicts() function in test_runnable.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  01f1aa33_846e_b581_95dd_51e6d9c7e1bd["test_passthrough_transform_with_dicts()"]
  26df6ad8_0189_51d0_c3c1_6c3248893ff5["test_runnable.py"]
  01f1aa33_846e_b581_95dd_51e6d9c7e1bd -->|defined in| 26df6ad8_0189_51d0_c3c1_6c3248893ff5
  style 01f1aa33_846e_b581_95dd_51e6d9c7e1bd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/runnables/test_runnable.py lines 5559–5563

def test_passthrough_transform_with_dicts() -> None:
    """Test that default transform works with dicts."""
    runnable = RunnablePassthrough(lambda x: x)
    chunks = list(runnable.transform(iter([{"foo": "a"}, {"foo": "n"}])))
    assert chunks == [{"foo": "a"}, {"foo": "n"}]

Domain

Subdomains

Frequently Asked Questions

What does test_passthrough_transform_with_dicts() do?
test_passthrough_transform_with_dicts() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/runnables/test_runnable.py.
Where is test_passthrough_transform_with_dicts() defined?
test_passthrough_transform_with_dicts() is defined in libs/core/tests/unit_tests/runnables/test_runnable.py at line 5559.

Analyze Your Own Codebase

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

Try Supermodel Free