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

Function test_enum_schema

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

Source from the content-addressed store, hash-verified

62
63
64def test_enum_schema():
65 schema = {
66 "type": "string",
67 "enum": [
68 "foo",
69 "bar",
70 ],
71 }
72 result = transform_schema(schema)
73 assert result == snapshot({"type": "string", "enum": ["foo", "bar"]})
74
75
76def test_allof():

Callers

nothing calls this directly

Calls 1

transform_schemaFunction · 0.90

Tested by

no test coverage detected