test_dict_mimicking_lc_constructor_with_secret() — langchain Function Reference
Architecture documentation for the test_dict_mimicking_lc_constructor_with_secret() function in test_secret_injection.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD b2b64942_dfa8_edb2_ba15_323062960db1["test_dict_mimicking_lc_constructor_with_secret()"] 5e2e27e7_826a_be31_1e0d_c526e9b911e2["TestDictTopLevel"] b2b64942_dfa8_edb2_ba15_323062960db1 -->|defined in| 5e2e27e7_826a_be31_1e0d_c526e9b911e2 9667a3de_eb6c_d235_9e9f_0bb0ddcacee3["_assert_no_secret_leak()"] b2b64942_dfa8_edb2_ba15_323062960db1 -->|calls| 9667a3de_eb6c_d235_9e9f_0bb0ddcacee3 style b2b64942_dfa8_edb2_ba15_323062960db1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/load/test_secret_injection.py lines 158–169
def test_dict_mimicking_lc_constructor_with_secret(self) -> None:
"""Dict that looks like an LC constructor containing a secret."""
payload = {
"lc": 1,
"type": "constructor",
"id": ["langchain_core", "messages", "ai", "AIMessage"],
"kwargs": {
"content": "Hello",
"additional_kwargs": {"secret": MALICIOUS_SECRET_DICT},
},
}
_assert_no_secret_leak(payload)
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does test_dict_mimicking_lc_constructor_with_secret() do?
test_dict_mimicking_lc_constructor_with_secret() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/load/test_secret_injection.py.
Where is test_dict_mimicking_lc_constructor_with_secret() defined?
test_dict_mimicking_lc_constructor_with_secret() is defined in libs/core/tests/unit_tests/load/test_secret_injection.py at line 158.
What does test_dict_mimicking_lc_constructor_with_secret() call?
test_dict_mimicking_lc_constructor_with_secret() 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