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