MCPcopy
hub / github.com/sparckles/Robyn / test_schema_int_enum

Function test_schema_int_enum

unit_tests/test_openapi_consolidated.py:58–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56
57
58def test_schema_int_enum():
59 class Priority(enum.IntEnum):
60 LOW = 1
61 HIGH = 2
62
63 api = OpenAPI()
64 schema = api.get_schema_object("priority", Priority)
65 assert schema["type"] == "integer"
66 assert schema["enum"] == [1, 2]
67
68
69def test_schema_literal():

Callers

nothing calls this directly

Calls 2

get_schema_objectMethod · 0.95
OpenAPIClass · 0.90

Tested by

no test coverage detected