SurfSense/surfsense_backend/tests/unit/services
CREDO23 8d0090c6a1 refactor(agents): delete deliverable dead twins in shared/tools; fix live image api_base bug
The deliverables subagent runs its own generate_image/podcast/report/resume/
video_presentation (via tools/index.py); the shared/tools copies had zero
production importers — classic dead twins. Removed them so deliverable tools
live only in their vertical slice.

While repointing the 2 stranded unit tests at the LIVE deliverables modules,
found the OpenRouter empty-api_base defense (resolve_api_base) existed ONLY in
the dead shared generate_image, never propagated to the live multi-agent copy.
Ported the fix into deliverables/tools/generate_image.py (both the global-config
and user-DB-config branches) so an empty api_base no longer falls through to
LiteLLM's global api_base (Azure) and 404s.

Tests now exercise the live Command/receipt-returning tools (invoke the raw
coroutine with a hand-built ToolRuntime; resume progress events neutralized).
2026-06-04 20:30:30 +02:00
..
streaming feat: improved document, folder mentions rendering 2026-05-09 22:15:51 -07:00
__init__.py test: add unit tests for Dropbox integration, covering delta sync methods, file type filtering, and re-authentication behavior 2026-04-06 18:36:48 +05:30
test_agent_billing_resolver.py feat: unified credits and its cost calculations 2026-05-02 14:34:23 -07:00
test_ai_file_sort_service.py feat: added ai file sorting 2026-04-14 01:43:30 -07:00
test_ai_sort_task_dedupe.py feat: added ai file sorting 2026-04-14 01:43:30 -07:00
test_auto_model_pin_service.py feat: add preferred premium auto configuration logic and corresponding tests 2026-05-02 23:35:47 -07:00
test_auto_pin_image_aware.py feat: fixed vision/image provider specific errors and fixed podcast/video streaming 2026-05-02 19:18:53 -07:00
test_billable_call.py feat: fixed vision/image provider specific errors and fixed podcast/video streaming 2026-05-02 19:18:53 -07:00
test_docling_image_support.py chore: ran linting 2026-04-07 05:55:39 +05:30
test_folder_hierarchy.py feat: added ai file sorting 2026-04-14 01:43:30 -07:00
test_image_gen_api_base_defense.py refactor(agents): delete deliverable dead twins in shared/tools; fix live image api_base bug 2026-06-04 20:30:30 +02:00
test_llm_router_pool_filter.py chore: ran linting 2026-05-02 03:36:13 +05:30
test_memory_service.py feat: add no-update sentinel handling to save_memory function and corresponding unit tests 2026-05-20 15:03:35 +05:30
test_openrouter_integration_service.py feat: fixed vision/image provider specific errors and fixed podcast/video streaming 2026-05-02 19:18:53 -07:00
test_openrouter_legacy_config.py chore: ran linting 2026-05-02 03:36:13 +05:30
test_or_health_enrichment.py feat(openrouter): blend per-model /endpoints health into quality score 2026-05-01 23:38:40 +05:30
test_pricing_registration.py feat: unified credits and its cost calculations 2026-05-02 14:34:23 -07:00
test_provider_api_base.py feat: fixed vision/image provider specific errors and fixed podcast/video streaming 2026-05-02 19:18:53 -07:00
test_provider_capabilities.py feat: fixed vision/image provider specific errors and fixed podcast/video streaming 2026-05-02 19:18:53 -07:00
test_quality_score.py chore: ran linting 2026-05-02 03:36:13 +05:30
test_quota_checked_vision_llm.py feat: unified credits and its cost calculations 2026-05-02 14:34:23 -07:00
test_revert_filesystem_tools.py feat: improved agent streaming 2026-04-29 07:20:31 -07:00
test_revert_service.py chore: cleaned comments slop 2026-04-28 23:52:37 -07:00
test_supports_image_input.py refactor(agents): move llm_config + prompt_caching to app/agents/shared (slice 4b) 2026-06-04 12:41:52 +02:00
test_token_quota_service_cost.py feat: unified credits and its cost calculations 2026-05-02 14:34:23 -07:00
test_vision_llm_api_base_defense.py refactor(agents): move llm_config + prompt_caching to app/agents/shared (slice 4b) 2026-06-04 12:41:52 +02:00