Home / Function/ test_double_dumpd_nesting() — langchain Function Reference

test_double_dumpd_nesting() — langchain Function Reference

Architecture documentation for the test_double_dumpd_nesting() function in test_secret_injection.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  258729bf_851d_1f7f_8c8b_aa8168efcb03["test_double_dumpd_nesting()"]
  1ebfab4b_5c61_368f_b6fe_fa4dc0673506["TestDumpdInKwargs"]
  258729bf_851d_1f7f_8c8b_aa8168efcb03 -->|defined in| 1ebfab4b_5c61_368f_b6fe_fa4dc0673506
  9667a3de_eb6c_d235_9e9f_0bb0ddcacee3["_assert_no_secret_leak()"]
  258729bf_851d_1f7f_8c8b_aa8168efcb03 -->|calls| 9667a3de_eb6c_d235_9e9f_0bb0ddcacee3
  style 258729bf_851d_1f7f_8c8b_aa8168efcb03 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/load/test_secret_injection.py lines 261–269

    def test_double_dumpd_nesting(self) -> None:
        """Double nesting: `dumpd(AIMessage(dumpd(HumanMessage)))`."""
        h = HumanMessage(
            "Hello",
            additional_kwargs={"secret": MALICIOUS_SECRET_DICT},
        )
        a = AIMessage("foo", additional_kwargs={"bar": [dumpd(h)]})
        outer = AIMessage("outer", additional_kwargs={"nested": [dumpd(a)]})
        _assert_no_secret_leak(outer)

Domain

Subdomains

Frequently Asked Questions

What does test_double_dumpd_nesting() do?
test_double_dumpd_nesting() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/load/test_secret_injection.py.
Where is test_double_dumpd_nesting() defined?
test_double_dumpd_nesting() is defined in libs/core/tests/unit_tests/load/test_secret_injection.py at line 261.
What does test_double_dumpd_nesting() call?
test_double_dumpd_nesting() calls 1 function(s): _assert_no_secret_leak.

Analyze Your Own Codebase

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

Try Supermodel Free