mirror of
https://github.com/correl/openapi-core.git
synced 2024-11-25 11:09:53 +00:00
14 lines
376 B
Python
14 lines
376 B
Python
|
"""OpenAPI core testing responses module"""
|
||
|
from openapi_core.validation.response.datatypes import OpenAPIResponse
|
||
|
|
||
|
|
||
|
class MockResponseFactory(object):
|
||
|
|
||
|
@classmethod
|
||
|
def create(cls, data, status_code=200, mimetype='application/json'):
|
||
|
return OpenAPIResponse(
|
||
|
data=data,
|
||
|
status_code=status_code,
|
||
|
mimetype=mimetype,
|
||
|
)
|