Home / Function/ test_loading_jinja_from_json() — langchain Function Reference

test_loading_jinja_from_json() — langchain Function Reference

Architecture documentation for the test_loading_jinja_from_json() function in test_loading.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  0554ec53_fc72_35e5_d0d6_bf0e9cc455d6["test_loading_jinja_from_json()"]
  75e88228_0950_e62b_83e4_e5087cf36dde["test_loading.py"]
  0554ec53_fc72_35e5_d0d6_bf0e9cc455d6 -->|defined in| 75e88228_0950_e62b_83e4_e5087cf36dde
  style 0554ec53_fc72_35e5_d0d6_bf0e9cc455d6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/prompts/test_loading.py lines 49–53

def test_loading_jinja_from_json() -> None:
    """Test that loading jinja2 format prompts from JSON raises ValueError."""
    prompt_path = EXAMPLE_DIR / "jinja_injection_prompt.json"
    with pytest.raises(ValueError, match=r".*can lead to arbitrary code execution.*"):
        load_prompt(prompt_path)

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free