Files
gh-christianlouis-docuelevate/tests
google-labs-jules[bot] 10df0b21bf 🧪 Extract and complete tests for saved searches API
Extracted existing `TestSavedSearchesCRUD` from `tests/test_api_advanced_filters.py` into a dedicated `tests/test_api_saved_searches.py` file to better organize testing logic and reflect the application's file structure.

Significantly improved code coverage of `app/api/saved_searches.py` from 0% (missing configuration imports during tests) to 100% by testing previously untested edge cases including:
- Reaching the maximum saved search limit per user.
- Database commit errors (`HTTP_500_INTERNAL_SERVER_ERROR`) during create, update, and delete actions.
- Validation failures for `filters` field checking for non-dict types (`status.HTTP_422_UNPROCESSABLE_ENTITY`).
- Conflicting names during updates where an existing saved search matches the new name.
- Proper fallback logic across authentication methods for `_get_user_id`.

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-23 16:31:34 +00:00
..
2026-02-23 09:33:48 +00:00
2026-02-14 00:16:21 +00:00
2026-02-14 00:16:21 +00:00
2026-02-14 00:16:21 +00:00
2026-02-22 15:25:48 +00:00
2026-03-08 22:40:15 +00:00