test_runnable_get_graph_with_invalid_input_type() — langchain Function Reference
Architecture documentation for the test_runnable_get_graph_with_invalid_input_type() function in test_graph.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 290bba68_2de5_d488_2672_f53bb8c50af8["test_runnable_get_graph_with_invalid_input_type()"] 972d89eb_abd0_b940_67b4_eff75c775ace["test_graph.py"] 290bba68_2de5_d488_2672_f53bb8c50af8 -->|defined in| 972d89eb_abd0_b940_67b4_eff75c775ace 868e04a7_892f_9e1b_382d_ae486ad9f7b4["InputType()"] 290bba68_2de5_d488_2672_f53bb8c50af8 -->|calls| 868e04a7_892f_9e1b_382d_ae486ad9f7b4 063acbd5_b5e9_011f_c4b9_b59f62388ce5["invoke()"] 290bba68_2de5_d488_2672_f53bb8c50af8 -->|calls| 063acbd5_b5e9_011f_c4b9_b59f62388ce5 style 290bba68_2de5_d488_2672_f53bb8c50af8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/runnables/test_graph.py lines 475–497
def test_runnable_get_graph_with_invalid_input_type() -> None:
"""Test that error isn't raised when getting graph with invalid input type."""
class InvalidInputTypeRunnable(Runnable[int, int]):
@property
@override
def InputType(self) -> type:
raise TypeError
@override
def invoke(
self,
input: int,
config: RunnableConfig | None = None,
**kwargs: Any,
) -> int:
return input
runnable = InvalidInputTypeRunnable()
# check whether runnable.invoke works
assert runnable.invoke(1) == 1
# check whether runnable.get_graph works
runnable.get_graph()
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does test_runnable_get_graph_with_invalid_input_type() do?
test_runnable_get_graph_with_invalid_input_type() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/runnables/test_graph.py.
Where is test_runnable_get_graph_with_invalid_input_type() defined?
test_runnable_get_graph_with_invalid_input_type() is defined in libs/core/tests/unit_tests/runnables/test_graph.py at line 475.
What does test_runnable_get_graph_with_invalid_input_type() call?
test_runnable_get_graph_with_invalid_input_type() calls 2 function(s): InputType, invoke.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free