MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / test_enum_schema

Function test_enum_schema

tests/lib/_parse/test_transform.py:66–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64
65
66def test_enum_schema():
67 schema = {
68 "type": "string",
69 "enum": [
70 "foo",
71 "bar",
72 ],
73 }
74 result = transform_schema(schema)
75 assert result == snapshot({"enum": ["foo", "bar"]})
76
77
78@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

transform_schemaFunction · 0.90

Tested by

no test coverage detected