Home / Function/ test_dict_with_secret_in_list() — langchain Function Reference

test_dict_with_secret_in_list() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  7c5ac731_dccb_125d_4417_c5d68020a7bf["test_dict_with_secret_in_list()"]
  5e2e27e7_826a_be31_1e0d_c526e9b911e2["TestDictTopLevel"]
  7c5ac731_dccb_125d_4417_c5d68020a7bf -->|defined in| 5e2e27e7_826a_be31_1e0d_c526e9b911e2
  9667a3de_eb6c_d235_9e9f_0bb0ddcacee3["_assert_no_secret_leak()"]
  7c5ac731_dccb_125d_4417_c5d68020a7bf -->|calls| 9667a3de_eb6c_d235_9e9f_0bb0ddcacee3
  style 7c5ac731_dccb_125d_4417_c5d68020a7bf fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/load/test_secret_injection.py lines 153–156

    def test_dict_with_secret_in_list(self) -> None:
        """Dict with secret-like dict in a list."""
        payload = {"items": [MALICIOUS_SECRET_DICT]}
        _assert_no_secret_leak(payload)

Domain

Subdomains

Frequently Asked Questions

What does test_dict_with_secret_in_list() do?
test_dict_with_secret_in_list() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/load/test_secret_injection.py.
Where is test_dict_with_secret_in_list() defined?
test_dict_with_secret_in_list() is defined in libs/core/tests/unit_tests/load/test_secret_injection.py at line 153.
What does test_dict_with_secret_in_list() call?
test_dict_with_secret_in_list() 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