mirror of
https://github.com/langgenius/dify.git
synced 2026-06-17 06:21:07 +08:00
Adds TestErrorMatrix (23 parametrized rows) covering every exception class raised or mapped in files.py and app_run.py, asserting the exact wire code each path emits and that every emitted code is an OpenApiErrorCode member. Also adds error_code = "filename_not_exists" to FilenameNotExistsError, which had no explicit code and was falling through to the status-map (bad_request). |
||
|---|---|---|
| .. | ||
| common | ||
| console | ||
| files | ||
| inner_api | ||
| mcp | ||
| openapi | ||
| service_api | ||
| trigger | ||
| web | ||
| __init__.py | ||
| API_SCHEMA_GUIDE.md | ||
| fastopenapi.py | ||