test_run_with_callback_and_input_error() — langchain Function Reference
Architecture documentation for the test_run_with_callback_and_input_error() function in test_base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD fc404af8_44a8_a141_77eb_9c839aabeeea["test_run_with_callback_and_input_error()"] cbc5b920_9825_eac5_8cc4_bc8187fb214c["test_base.py"] fc404af8_44a8_a141_77eb_9c839aabeeea -->|defined in| cbc5b920_9825_eac5_8cc4_bc8187fb214c style fc404af8_44a8_a141_77eb_9c839aabeeea fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/chains/test_base.py lines 183–196
def test_run_with_callback_and_input_error() -> None:
"""Test callback manager catches run validation input error."""
handler = FakeCallbackHandler()
chain = FakeChain(
the_input_keys=["foo", "bar"],
callbacks=[handler],
)
with pytest.raises(ValueError, match=re.escape("Missing some input keys: {'foo'}")):
chain({"bar": "foo"})
assert handler.starts == 1
assert handler.ends == 0
assert handler.errors == 1
Domain
Subdomains
Source
Frequently Asked Questions
What does test_run_with_callback_and_input_error() do?
test_run_with_callback_and_input_error() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/chains/test_base.py.
Where is test_run_with_callback_and_input_error() defined?
test_run_with_callback_and_input_error() is defined in libs/langchain/tests/unit_tests/chains/test_base.py at line 183.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free