test_fallbacks() — langchain Function Reference
Architecture documentation for the test_fallbacks() function in test_fallbacks.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 5771ac81_b7a1_2241_f772_0c8a45fcff4d["test_fallbacks()"] d62d478e_a330_c328_7da4_58e88d780807["test_fallbacks.py"] 5771ac81_b7a1_2241_f772_0c8a45fcff4d -->|defined in| d62d478e_a330_c328_7da4_58e88d780807 style 5771ac81_b7a1_2241_f772_0c8a45fcff4d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/runnables/test_fallbacks.py lines 83–90
def test_fallbacks(
runnable_name: str, request: Any, snapshot: SnapshotAssertion
) -> None:
runnable: Runnable[Any, Any] = request.getfixturevalue(runnable_name)
assert runnable.invoke("hello") == "bar"
assert runnable.batch(["hi", "hey", "bye"]) == ["bar"] * 3
assert list(runnable.stream("hello")) == ["bar"]
assert dumps(runnable, pretty=True) == snapshot
Domain
Subdomains
Source
Frequently Asked Questions
What does test_fallbacks() do?
test_fallbacks() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/runnables/test_fallbacks.py.
Where is test_fallbacks() defined?
test_fallbacks() is defined in libs/core/tests/unit_tests/runnables/test_fallbacks.py at line 83.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free