fix(api): stop returning 204 with response body and add CI check (#36489)

This commit is contained in:
chariri authored and GitHub committed 2026-05-21 16:20:34 +00:00
1 parent f19702f76c
commit ea5e487d3c
29 files changed
+46 -46

No files matched your search

@@ -128,7 +128,7 @@ class TestConversationApi:
body, status = result
assert status == 204
assert body["result"] == "success"
assert body == ""
def test_delete_not_found(self, app: Flask, chat_app, user):
api = conversation_module.ConversationApi()
@@ -81,7 +81,7 @@ class TestConversationApi:
result, status = ConversationApi().delete(_chat_app(), _end_user(), c_id)
assert status == 204
assert result["result"] == "success"
assert result == ""
@patch("controllers.web.conversation.ConversationService.delete", side_effect=ConversationNotExistsError())
def test_delete_not_found(self, mock_delete: MagicMock, app: Flask) -> None: