test_loading_jinja_from_yaml() — langchain Function Reference
Architecture documentation for the test_loading_jinja_from_yaml() function in test_loading.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 91fd23a7_590c_0c4e_b44d_21fce040fb94["test_loading_jinja_from_yaml()"] 75e88228_0950_e62b_83e4_e5087cf36dde["test_loading.py"] 91fd23a7_590c_0c4e_b44d_21fce040fb94 -->|defined in| 75e88228_0950_e62b_83e4_e5087cf36dde style 91fd23a7_590c_0c4e_b44d_21fce040fb94 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/prompts/test_loading.py lines 56–60
def test_loading_jinja_from_yaml() -> None:
"""Test that loading jinja2 format prompts from YAML raises ValueError."""
prompt_path = EXAMPLE_DIR / "jinja_injection_prompt.yaml"
with pytest.raises(ValueError, match=r".*can lead to arbitrary code execution.*"):
load_prompt(prompt_path)
Domain
Subdomains
Source
Frequently Asked Questions
What does test_loading_jinja_from_yaml() do?
test_loading_jinja_from_yaml() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/prompts/test_loading.py.
Where is test_loading_jinja_from_yaml() defined?
test_loading_jinja_from_yaml() is defined in libs/core/tests/unit_tests/prompts/test_loading.py at line 56.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free