Home / Function/ test_string_schema_with_format_and_default() — anthropic-sdk-python Function Reference

test_string_schema_with_format_and_default() — anthropic-sdk-python Function Reference

Architecture documentation for the test_string_schema_with_format_and_default() function in test_transform.py from the anthropic-sdk-python codebase.

Entity Profile

Dependency Diagram

graph TD
  5d073711_53d4_e3f0_532d_30496c22afe6["test_string_schema_with_format_and_default()"]
  f13a5b42_c05a_948e_30ef_06fc0a2c8ed3["test_transform.py"]
  5d073711_53d4_e3f0_532d_30496c22afe6 -->|defined in| f13a5b42_c05a_948e_30ef_06fc0a2c8ed3
  style 5d073711_53d4_e3f0_532d_30496c22afe6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/lib/_parse/test_transform.py lines 108–126

def test_string_schema_with_format_and_default():
    schema = {
        "type": "string",
        "format": "email",
        "default": "user@example.com",
        "description": "User email",
    }
    result = transform_schema(schema)
    assert result == snapshot(
        {
            "type": "string",
            "description": """\
User email

{default: user@example.com}\
""",
            "format": "email",
        }
    )

Subdomains

Frequently Asked Questions

What does test_string_schema_with_format_and_default() do?
test_string_schema_with_format_and_default() is a function in the anthropic-sdk-python codebase, defined in tests/lib/_parse/test_transform.py.
Where is test_string_schema_with_format_and_default() defined?
test_string_schema_with_format_and_default() is defined in tests/lib/_parse/test_transform.py at line 108.

Analyze Your Own Codebase

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

Try Supermodel Free