Fix generator exception handling in database dependencies

- Add proper exception handling in get_database_session and get_optional_database_session
- Prevents 'generator didn't stop after athrow()' error when HTTPException is raised
- Add mock for BackgroundLoaderService in anime endpoint tests
- Update test expectations to match 202 Accepted response for async add_series endpoint
This commit is contained in:
2026-01-19 19:38:53 +01:00
parent 265d7fe435
commit 09a5eccea7
5 changed files with 123 additions and 2189 deletions

File diff suppressed because it is too large Load Diff