()
| 56 | |
| 57 | |
| 58 | def 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 | |
| 69 | def test_schema_literal(): |
nothing calls this directly
no test coverage detected