test_multi_output_errors() — langchain Function Reference
Architecture documentation for the test_multi_output_errors() function in test_sequential.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD ec5eea4a_4b9a_4af9_7c2b_b1d9a9943a7a["test_multi_output_errors()"] 0021bb47_51ab_bafd_26b4_c2849000554a["test_sequential.py"] ec5eea4a_4b9a_4af9_7c2b_b1d9a9943a7a -->|defined in| 0021bb47_51ab_bafd_26b4_c2849000554a style ec5eea4a_4b9a_4af9_7c2b_b1d9a9943a7a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/chains/test_sequential.py lines 256–264
def test_multi_output_errors() -> None:
"""Test simple sequential errors if multiple output variables are expected."""
chain_1 = FakeChain(input_variables=["foo"], output_variables=["bar", "grok"])
chain_2 = FakeChain(input_variables=["bar"], output_variables=["baz"])
with pytest.raises(
ValueError,
match="Value error, Chains used in SimplePipeline should all have one output",
):
SimpleSequentialChain(chains=[chain_1, chain_2])
Domain
Subdomains
Source
Frequently Asked Questions
What does test_multi_output_errors() do?
test_multi_output_errors() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/chains/test_sequential.py.
Where is test_multi_output_errors() defined?
test_multi_output_errors() is defined in libs/langchain/tests/unit_tests/chains/test_sequential.py at line 256.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free