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