test_prompt_empty_input_variable() — langchain Function Reference
Architecture documentation for the test_prompt_empty_input_variable() function in test_prompt.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD bbb9561f_868f_850a_7a72_988bdd0cfcb4["test_prompt_empty_input_variable()"] af1b998b_a7bf_9d5c_32ef_bab507a6bee3["test_prompt.py"] bbb9561f_868f_850a_7a72_988bdd0cfcb4 -->|defined in| af1b998b_a7bf_9d5c_32ef_bab507a6bee3 style bbb9561f_868f_850a_7a72_988bdd0cfcb4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/prompts/test_prompt.py lines 280–286
def test_prompt_empty_input_variable() -> None:
"""Test error is raised when empty string input variable."""
with pytest.raises(
ValueError,
match=re.escape("check for mismatched or missing input parameters from ['']"),
):
PromptTemplate(input_variables=[""], template="{}", validate_template=True)
Domain
Subdomains
Source
Frequently Asked Questions
What does test_prompt_empty_input_variable() do?
test_prompt_empty_input_variable() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/prompts/test_prompt.py.
Where is test_prompt_empty_input_variable() defined?
test_prompt_empty_input_variable() is defined in libs/core/tests/unit_tests/prompts/test_prompt.py at line 280.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free