test_get_template_variables_mustache_nested() — langchain Function Reference
Architecture documentation for the test_get_template_variables_mustache_nested() function in test_string.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD adc9ca8c_ea6d_173c_af64_f7a4bd27a1da["test_get_template_variables_mustache_nested()"] ee8d1d01_dc2d_5490_76fd_b7e7c266afd3["test_string.py"] adc9ca8c_ea6d_173c_af64_f7a4bd27a1da -->|defined in| ee8d1d01_dc2d_5490_76fd_b7e7c266afd3 style adc9ca8c_ea6d_173c_af64_f7a4bd27a1da fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/prompts/test_string.py lines 35–41
def test_get_template_variables_mustache_nested() -> None:
template = "Hello {{user.name}}, your role is {{user.role}}"
template_format = "mustache"
# Returns only the top-level key for mustache templates
expected = ["user"]
actual = get_template_variables(template, template_format)
assert actual == expected
Domain
Subdomains
Source
Frequently Asked Questions
What does test_get_template_variables_mustache_nested() do?
test_get_template_variables_mustache_nested() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/prompts/test_string.py.
Where is test_get_template_variables_mustache_nested() defined?
test_get_template_variables_mustache_nested() is defined in libs/core/tests/unit_tests/prompts/test_string.py at line 35.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free