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

test_original_schema_not_mutated() — anthropic-sdk-python Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

tests/lib/_parse/test_transform.py lines 175–191

def test_original_schema_not_mutated():
    original_schema = {
        "type": "object",
        "properties": {
            "name": {"type": "string", "default": "John"},
            "age": {"type": "integer", "minimum": 0},
        },
        "required": ["name"],
        "description": "Person object",
        "additionalProperties": True,
    }

    original_schema_backup = deepcopy(original_schema)

    transform_schema(original_schema)

    assert original_schema == original_schema_backup

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free