test_doubly_set_configurable() — langchain Function Reference
Architecture documentation for the test_doubly_set_configurable() function in test_configurable.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 8a12fac4_eee2_1f63_672d_a4e6de4b0704["test_doubly_set_configurable()"] ec7909ee_ece0_2780_95cd_f0c5229fc46d["test_configurable.py"] 8a12fac4_eee2_1f63_672d_a4e6de4b0704 -->|defined in| ec7909ee_ece0_2780_95cd_f0c5229fc46d 881be650_c38e_3e60_74cf_8cdfc48f60b9["invoke()"] 8a12fac4_eee2_1f63_672d_a4e6de4b0704 -->|calls| 881be650_c38e_3e60_74cf_8cdfc48f60b9 style 8a12fac4_eee2_1f63_672d_a4e6de4b0704 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/runnables/test_configurable.py lines 77–88
def test_doubly_set_configurable() -> None:
"""Test that setting a configurable field with a default value works."""
runnable = MyRunnable(my_property="a")
configurable_runnable = runnable.configurable_fields(
my_property=ConfigurableField(
id="my_property",
name="My property",
description="The property to test",
)
)
assert configurable_runnable.invoke("d", config={"my_property": "c"}) == "dc" # type: ignore[arg-type]
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does test_doubly_set_configurable() do?
test_doubly_set_configurable() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/runnables/test_configurable.py.
Where is test_doubly_set_configurable() defined?
test_doubly_set_configurable() is defined in libs/core/tests/unit_tests/runnables/test_configurable.py at line 77.
What does test_doubly_set_configurable() call?
test_doubly_set_configurable() calls 1 function(s): invoke.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free