mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
fix(api): stop returning 204 with response body and add CI check (#36489)
This commit is contained in:
1 parent
f19702f76c
commit
ea5e487d3c
29 files changed
+46
-46
No files matched your search
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user