def test_swagger_minimal(app):
"""
Test a swagger config for a minimal setup.
"""
app.config['OPENAPI_INFO_VERSION'] = '1.2.3'
openapi = OpenAPI(app)
assert openapi.swagger == {
'swagger': '2.0',
'info': {
'title': 'test_swagger_minimal',
'version': '1.2.3'
},
'paths': ANY,
'schemes': ['http'],
}
评论列表
文章目录