test_with_config_metadata_passthrough() — langchain Function Reference
Architecture documentation for the test_with_config_metadata_passthrough() function in test_runnable.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD a5226eb9_296c_795b_9d07_388c671dd444["test_with_config_metadata_passthrough()"] 26df6ad8_0189_51d0_c3c1_6c3248893ff5["test_runnable.py"] a5226eb9_296c_795b_9d07_388c671dd444 -->|defined in| 26df6ad8_0189_51d0_c3c1_6c3248893ff5 fb618d44_c03b_ea8b_385b_2278dfb173d4["invoke()"] a5226eb9_296c_795b_9d07_388c671dd444 -->|calls| fb618d44_c03b_ea8b_385b_2278dfb173d4 style a5226eb9_296c_795b_9d07_388c671dd444 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/runnables/test_runnable.py lines 1143–1168
async def test_with_config_metadata_passthrough(mocker: MockerFixture) -> None:
fake = FakeRunnableSerializable()
spy = mocker.spy(fake.__class__, "invoke")
fakew = fake.configurable_fields(hello=ConfigurableField(id="hello", name="Hello"))
assert (
fakew.with_config(tags=["a-tag"]).invoke(
"hello",
{
"configurable": {"hello": "there", "__secret_key": "nahnah"},
"metadata": {"bye": "now"},
},
)
== 5
)
assert spy.call_args_list[0].args[1:] == (
"hello",
{
"tags": ["a-tag"],
"callbacks": None,
"recursion_limit": 25,
"configurable": {"hello": "there", "__secret_key": "nahnah"},
"metadata": {"hello": "there", "bye": "now"},
},
)
spy.reset_mock()
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does test_with_config_metadata_passthrough() do?
test_with_config_metadata_passthrough() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/runnables/test_runnable.py.
Where is test_with_config_metadata_passthrough() defined?
test_with_config_metadata_passthrough() is defined in libs/core/tests/unit_tests/runnables/test_runnable.py at line 1143.
What does test_with_config_metadata_passthrough() call?
test_with_config_metadata_passthrough() 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