test_vformat_with_nested_braces() — langchain Function Reference
Architecture documentation for the test_vformat_with_nested_braces() function in test_formatting.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD fadd146f_505a_c856_aa91_1d2eb8a2e219["test_vformat_with_nested_braces()"] ebdb4f36_5c2e_c9a8_3bea_1b5dbb18c99d["TestStrictFormatter"] fadd146f_505a_c856_aa91_1d2eb8a2e219 -->|defined in| ebdb4f36_5c2e_c9a8_3bea_1b5dbb18c99d style fadd146f_505a_c856_aa91_1d2eb8a2e219 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/utils/test_formatting.py lines 75–79
def test_vformat_with_nested_braces(self) -> None:
"""Test `vformat` with escaped braces."""
fmt = StrictFormatter()
result = fmt.vformat("{{literal}} {var}", [], {"var": "value"})
assert result == "{literal} value"
Domain
Subdomains
Source
Frequently Asked Questions
What does test_vformat_with_nested_braces() do?
test_vformat_with_nested_braces() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/utils/test_formatting.py.
Where is test_vformat_with_nested_braces() defined?
test_vformat_with_nested_braces() is defined in libs/core/tests/unit_tests/utils/test_formatting.py at line 75.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free