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

Function test_enum_schema

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

transform_schemaFunction · 0.90

Tested by

no test coverage detected