test_fallbacks_getattr() — langchain Function Reference
Architecture documentation for the test_fallbacks_getattr() function in test_fallbacks.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 11087a98_0650_3bc3_69af_9772f9781c22["test_fallbacks_getattr()"] 905e276b_98d0_eba1_e23b_8303081c1894["test_fallbacks.py"] 11087a98_0650_3bc3_69af_9772f9781c22 -->|defined in| 905e276b_98d0_eba1_e23b_8303081c1894 style 11087a98_0650_3bc3_69af_9772f9781c22 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/runnables/test_fallbacks.py lines 381–388
def test_fallbacks_getattr() -> None:
llm_with_fallbacks = FakeStructuredOutputModel(foo=3).with_fallbacks(
[FakeModel(bar=4)]
)
assert llm_with_fallbacks.foo == 3
with pytest.raises(AttributeError):
assert llm_with_fallbacks.bar == 4
Domain
Subdomains
Source
Frequently Asked Questions
What does test_fallbacks_getattr() do?
test_fallbacks_getattr() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/runnables/test_fallbacks.py.
Where is test_fallbacks_getattr() defined?
test_fallbacks_getattr() is defined in libs/core/tests/unit_tests/runnables/test_fallbacks.py at line 381.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free