#23 refactor for cleverBRAG, fix failing unit tests
Unit test coverage / pytest (push) Failing after 1m10s
Unit test coverage / pytest (pull_request) Failing after 1m9s

This commit is contained in:
Stanislav Hejny
2025-05-12 00:46:18 +01:00
parent 27a930b3c3
commit c387a2494e
4 changed files with 26 additions and 24 deletions
+9 -1
View File
@@ -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(