Home / Function/ test_does_not_allow_args() — langchain Function Reference

test_does_not_allow_args() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  4057ca95_7b68_4e47_5b74_f27c45e346d6["test_does_not_allow_args()"]
  4d0389ff_f7cf_dbbd_92a1_671f3b26007d["test_formatting.py"]
  4057ca95_7b68_4e47_5b74_f27c45e346d6 -->|defined in| 4d0389ff_f7cf_dbbd_92a1_671f3b26007d
  style 4057ca95_7b68_4e47_5b74_f27c45e346d6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/tests/unit_tests/test_formatting.py lines 15–23

def test_does_not_allow_args() -> None:
    """Test formatting raises error when args are provided."""
    template = "This is a {} test."
    with pytest.raises(
        ValueError,
        match="No arguments should be provided, "
        "everything should be passed as keyword arguments",
    ):
        formatter.format(template, "good")

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free