Home / Function/ test_prompt_with_template_variable_name_mustache() — langchain Function Reference

test_prompt_with_template_variable_name_mustache() — langchain Function Reference

Architecture documentation for the test_prompt_with_template_variable_name_mustache() function in test_prompt.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  351f9f5c_e4e2_5cd8_f12b_e1ae5205bb4a["test_prompt_with_template_variable_name_mustache()"]
  af1b998b_a7bf_9d5c_32ef_bab507a6bee3["test_prompt.py"]
  351f9f5c_e4e2_5cd8_f12b_e1ae5205bb4a -->|defined in| af1b998b_a7bf_9d5c_32ef_bab507a6bee3
  style 351f9f5c_e4e2_5cd8_f12b_e1ae5205bb4a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/prompts/test_prompt.py lines 669–672

def test_prompt_with_template_variable_name_mustache() -> None:
    template = "This is a {{template}} test."
    prompt = PromptTemplate.from_template(template, template_format="mustache")
    assert prompt.invoke({"template": "bar"}).to_string() == "This is a bar test."

Subdomains

Frequently Asked Questions

What does test_prompt_with_template_variable_name_mustache() do?
test_prompt_with_template_variable_name_mustache() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/prompts/test_prompt.py.
Where is test_prompt_with_template_variable_name_mustache() defined?
test_prompt_with_template_variable_name_mustache() is defined in libs/core/tests/unit_tests/prompts/test_prompt.py at line 669.

Analyze Your Own Codebase

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

Try Supermodel Free