test_multiple_output_keys_error() — langchain Function Reference
Architecture documentation for the test_multiple_output_keys_error() function in test_base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD ba9b02d3_a6fc_442d_5e9e_322639a836eb["test_multiple_output_keys_error()"] cbc5b920_9825_eac5_8cc4_bc8187fb214c["test_base.py"] ba9b02d3_a6fc_442d_5e9e_322639a836eb -->|defined in| cbc5b920_9825_eac5_8cc4_bc8187fb214c style ba9b02d3_a6fc_442d_5e9e_322639a836eb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/chains/test_base.py lines 154–161
def test_multiple_output_keys_error() -> None:
"""Test run with multiple output keys errors as expected."""
chain = FakeChain(the_output_keys=["foo", "bar"])
with pytest.raises(
ValueError,
match="`run` not supported when there is not exactly one output key",
):
chain.run("bar")
Domain
Subdomains
Source
Frequently Asked Questions
What does test_multiple_output_keys_error() do?
test_multiple_output_keys_error() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/chains/test_base.py.
Where is test_multiple_output_keys_error() defined?
test_multiple_output_keys_error() is defined in libs/langchain/tests/unit_tests/chains/test_base.py at line 154.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free