Skip to content

Commit 39bee95

Browse files
authored
Unit tests for app.py (#577)
* Unit tests for app.py * Refactor tests
1 parent 5437e6a commit 39bee95

File tree

2 files changed

+342
-20
lines changed

2 files changed

+342
-20
lines changed

code/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def conversation_with_data(request):
210210
],
211211
}
212212

213-
return Response(json.dumps(response, ensure_ascii=False), status=status_code)
213+
return jsonify(response), status_code
214214
else:
215215
return Response(
216216
stream_with_data(body, headers, endpoint),

0 commit comments

Comments
 (0)