mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-17 19:44:45 +08:00
test: add unit tests of the app (#305)
* test: add unit tests in server * test: add unit tests of app.py in server * test: reformat the codes * test: add more tests to cover the exception part * test: add more tests on the server app part * fix: don't show the detail exception to the client * test: try to fix the CI test * fix: keep the TTS API call without exposure information * Fixed the unit test errors * Fixed the lint error
This commit is contained in:
@@ -129,4 +129,4 @@ class VolcengineTTS:
|
||||
|
||||
except Exception as e:
|
||||
logger.exception(f"Error in TTS API call: {str(e)}")
|
||||
return {"success": False, "error": str(e), "audio_data": None}
|
||||
return {"success": False, "error": "TTS API call error", "audio_data": None}
|
||||
|
||||
Reference in New Issue
Block a user