test_vformat_raises_on_positional_args() — langchain Function Reference
Architecture documentation for the test_vformat_raises_on_positional_args() function in test_formatting.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD f50dfb16_a5ae_1f7c_709c_309b1dd2ebe3["test_vformat_raises_on_positional_args()"] ebdb4f36_5c2e_c9a8_3bea_1b5dbb18c99d["TestStrictFormatter"] f50dfb16_a5ae_1f7c_709c_309b1dd2ebe3 -->|defined in| ebdb4f36_5c2e_c9a8_3bea_1b5dbb18c99d style f50dfb16_a5ae_1f7c_709c_309b1dd2ebe3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/utils/test_formatting.py lines 39–47
def test_vformat_raises_on_positional_args(self) -> None:
"""Test that `vformat` raises `ValueError` when positional args are provided."""
fmt = StrictFormatter()
with pytest.raises(
ValueError,
match=r"No arguments should be provided, "
r"everything should be passed as keyword arguments\.",
):
fmt.vformat("{}", ["arg"], {})
Domain
Subdomains
Source
Frequently Asked Questions
What does test_vformat_raises_on_positional_args() do?
test_vformat_raises_on_positional_args() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/utils/test_formatting.py.
Where is test_vformat_raises_on_positional_args() defined?
test_vformat_raises_on_positional_args() is defined in libs/core/tests/unit_tests/utils/test_formatting.py at line 39.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free