test_bad_outputs() — langchain Function Reference
Architecture documentation for the test_bad_outputs() function in test_base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 3ab5b481_4fb2_1307_4e22_e9cc5d999376["test_bad_outputs()"] cbc5b920_9825_eac5_8cc4_bc8187fb214c["test_base.py"] 3ab5b481_4fb2_1307_4e22_e9cc5d999376 -->|defined in| cbc5b920_9825_eac5_8cc4_bc8187fb214c style 3ab5b481_4fb2_1307_4e22_e9cc5d999376 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/chains/test_base.py lines 76–82
def test_bad_outputs() -> None:
"""Test errors are raised if outputs keys are not found."""
chain = FakeChain(be_correct=False)
with pytest.raises(
ValueError, match=re.escape("Missing some output keys: {'bar'}")
):
chain({"foo": "baz"})
Domain
Subdomains
Source
Frequently Asked Questions
What does test_bad_outputs() do?
test_bad_outputs() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/chains/test_base.py.
Where is test_bad_outputs() defined?
test_bad_outputs() is defined in libs/langchain/tests/unit_tests/chains/test_base.py at line 76.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free