Home / Function/ test_validate_input_variables_with_missing_variable() — langchain Function Reference

test_validate_input_variables_with_missing_variable() — langchain Function Reference

Architecture documentation for the test_validate_input_variables_with_missing_variable() function in test_formatting.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  0255ba42_dfd5_26c1_508d_4c04e56a6e30["test_validate_input_variables_with_missing_variable()"]
  ebdb4f36_5c2e_c9a8_3bea_1b5dbb18c99d["TestStrictFormatter"]
  0255ba42_dfd5_26c1_508d_4c04e56a6e30 -->|defined in| ebdb4f36_5c2e_c9a8_3bea_1b5dbb18c99d
  style 0255ba42_dfd5_26c1_508d_4c04e56a6e30 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/utils/test_formatting.py lines 93–97

    def test_validate_input_variables_with_missing_variable(self) -> None:
        """Test `validate_input_variables` raises with missing variable."""
        fmt = StrictFormatter()
        with pytest.raises(KeyError):
            fmt.validate_input_variables("{name} {missing}", ["name"])

Domain

Subdomains

Frequently Asked Questions

What does test_validate_input_variables_with_missing_variable() do?
test_validate_input_variables_with_missing_variable() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/utils/test_formatting.py.
Where is test_validate_input_variables_with_missing_variable() defined?
test_validate_input_variables_with_missing_variable() is defined in libs/core/tests/unit_tests/utils/test_formatting.py at line 93.

Analyze Your Own Codebase

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

Try Supermodel Free