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

Function test_enum_schema

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

Source from the content-addressed store, hash-verified

110
111
112def test_enum_schema():
113 schema = {
114 "type": "string",
115 "enum": [
116 "foo",
117 "bar",
118 ],
119 }
120 result = transform_schema(schema)
121 assert result == snapshot({"enum": ["foo", "bar"]})
122
123
124@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

transform_schemaFunction · 0.90

Tested by

no test coverage detected