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). |
||
|---|---|---|
| .. | ||
| controller_schemas.py | ||
| errors.py | ||
| fields.py | ||
| file_response.py | ||
| helpers.py | ||
| human_input.py | ||
| schema.py | ||