Home / Function/ test_formatter_rejects_positional_args() — langchain Function Reference

test_formatter_rejects_positional_args() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  6f3f3938_eaec_fafd_c40d_df9b3dfb7b7a["test_formatter_rejects_positional_args()"]
  57618b7d_943a_63b5_3b0f_3de3e8bbbfc1["TestFormatterSingleton"]
  6f3f3938_eaec_fafd_c40d_df9b3dfb7b7a -->|defined in| 57618b7d_943a_63b5_3b0f_3de3e8bbbfc1
  style 6f3f3938_eaec_fafd_c40d_df9b3dfb7b7a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/utils/test_formatting.py lines 124–127

    def test_formatter_rejects_positional_args(self) -> None:
        """Test that the formatter singleton rejects positional arguments."""
        with pytest.raises(ValueError, match=r"No arguments should be provided"):
            formatter.format("{}", "arg")

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free