Home / Function/ test_config_arbitrary_keys() — langchain Function Reference

test_config_arbitrary_keys() — langchain Function Reference

Architecture documentation for the test_config_arbitrary_keys() function in test_config.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  6def9c2b_ceae_6d18_c875_f1f0448e0d2f["test_config_arbitrary_keys()"]
  8b969f31_85c5_bfa6_c6dd_4c29568f829f["test_config.py"]
  6def9c2b_ceae_6d18_c875_f1f0448e0d2f -->|defined in| 8b969f31_85c5_bfa6_c6dd_4c29568f829f
  style 6def9c2b_ceae_6d18_c875_f1f0448e0d2f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/runnables/test_config.py lines 147–152

def test_config_arbitrary_keys() -> None:
    base: RunnablePassthrough[Any] = RunnablePassthrough()
    bound = base.with_config(my_custom_key="my custom value")
    config = cast("RunnableBinding[Any, Any]", bound).config

    assert config.get("my_custom_key") == "my custom value"

Subdomains

Frequently Asked Questions

What does test_config_arbitrary_keys() do?
test_config_arbitrary_keys() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/runnables/test_config.py.
Where is test_config_arbitrary_keys() defined?
test_config_arbitrary_keys() is defined in libs/core/tests/unit_tests/runnables/test_config.py at line 147.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free