#23 refactor for cleverBRAG, fix failing unit tests
This commit is contained in:
@@ -20,7 +20,15 @@ class DataResponseFactory:
|
||||
:param _id: ID
|
||||
:return: Response message
|
||||
"""
|
||||
return DataResponse(str(_id), 200, "application/text", "OK".encode("utf-8"), "", "", {})
|
||||
return DataResponseFactory.of(
|
||||
id=_id,
|
||||
response_code=200,
|
||||
content_type="application/text",
|
||||
body="OK".encode("utf-8"),
|
||||
trace_info={},
|
||||
error="",
|
||||
error_cause="",
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
def of(
|
||||
|
||||
Reference in New Issue
Block a user